When using the 'Folders' plugin it's possible to define Global libraries at the Server and folder level. These can both be used by the jobs under the folder.
When a job uses both libraries, the 'syncID' and 'client' in 'build.xml' contain the same name ('jenkins-library'). This could cause library sync and polling issues if the libraries are in different paths. For example:
grep "syncID\|\<change\>\|\<client\>" build.xml <change>103</change> <client>jenkins-library</client> <syncID>jenkins-library</syncID> <change>107</change> <client>jenkins-library</client> <syncID>jenkins-library</syncID> <change>108</change> <client>jenkins-master-Folder1-PipelineEditor_TestSharedLibrary-Source-TEST</client> <syncID>jenkins-NODE_NAME-Folder1-PipelineEditor_TestSharedLibrary-Source-TEST</syncID>
Reproduction Steps:
- Add a global library provided by Helix ALM and get source from //depot/lib1.
- Create a folder using 'New Item' on the Jenkins home page.
- Configure the folder to have a global library provided by Helix ALM and get source from //depot/lib2.
- When in the folder select New Item and create a simple pipeline job that syncs code.
- Run the job.
- Examine the build.xml created in the jobs directory for this job execution.
- is related to
-
JENKINS-53922 Poll results in changes always found when using 2 global libraries
- Closed