I’m running into a problem with pipeline library branches and I was hoping someone could help me understand what I’m doing wrong.
Jenkins Version: 2.121.2
I have a project configured, and the project has a pipeline library. The default version is “master”, load implicitly is not checked, and Allow default version to be overridden is checked. The Jenkins job that’s within the project does not define a pipeline library.
The pipeline job’s Jenkinsfile has:
@Library(value=”my_library”, changelog=false)
When I run the build, the output shows that the pipeline library being executed is “my_library@SomeBranchName”.
Similarly, when I reset the Jenkinsfile to include the master branch name:’
@Library(value=”my_library@master”, changelog=false)
it’s still pulling @SomeBranchName.
The way I thought this worked from reading the documentation is that:
Can anyone help me understand how pipeline libraries and branching is supposed to work?