Using Jenkins pipeline, simply use the parameters inside the agent label
specification and it will do exactly this.
(Note: Not 100% sure declarative pipelines support variables, but cannot
check right now)
Le lun. 27 juil. 2020 à 19:09, Alex Panayi a
écrit :
> Hey guys.
>
> I have a step where
Hey guys.
I have a step where i want to conditionally pick the agent based on the
parameter.
I can easily do this by duplicating the step, and having a when statement,
but this creates step duplication. I just want the agent label to be
dynamically changed based on a parameter.
--
You rece