Re: jenkins agent definition loaded from a jenkins library

2020-06-15 Thread Marco Sacchetto
Thanks Gianluca, that actually works. I missed the bit of information regarding the annotation that needs to go on variables inside the library to make them global! Il giorno lunedì 15 giugno 2020 13:28:33 UTC+1, Gianluca ha scritto: > > Hi, > I'm not entirely sure what are you looking for but I

Re: jenkins agent definition loaded from a jenkins library

2020-06-15 Thread Gianluca
Hi, I'm not entirely sure what are you looking for but I want to tell you that you can use variables as image name, or at least you can do for agent labels: agent{ label "${builder.label" } We use the above in our pipelines to have different agents depending on the branch and PR number and oth

jenkins agent definition loaded from a jenkins library

2020-06-15 Thread Marco Sacchetto
Hi, I'm currently using a Jenkins declarative pipeline (note: if my issue would be solved with a scripted pipeline, I can switch). The builds run inside an ephemeral docker agent spinned up by the pipeline using a syntax similar to agent{ docker{ image "my-image"}}} The issue with that is that