Re: Jenkins @Library load dynamic branch from variable

2020-01-16 Thread Chris Carpenter
; > Is your end goal to integration test your library before merging it to > master? We do something similar by standing up a local Jenkins and using > docker based agents. > > On Thu, Jan 16, 2020 at 07:01 Chris Carpenter > wrote: > >> It seems with this yo

Re: Jenkins @Library load dynamic branch from variable

2020-01-16 Thread Chris Carpenter
ibraries portion. It might do what you want. > > On Wed, Jan 15, 2020 at 15:12 Chris Carpenter > wrote: > >> Is there a way to dynamically load the library from dynamic branch >> variable like this: >> >> @Library("jenkins-pipeline@${env.BRANCH_NAME}"

Jenkins @Library load dynamic branch from variable

2020-01-15 Thread Chris Carpenter
Is there a way to dynamically load the library from dynamic branch variable like this: @Library("jenkins-pipeline@${env.BRANCH_NAME}") _ In a multi branch pipeline you have access to the current branch name in the environment variable `BRANCH_NAME`. I'd like to be able to test changes to my pi