Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54655

declarative library fails to override implicitly loaded library

      If the declarative syntax is used for loading a shared library it fails to override the impliciliy loaded global library.  The "Allow default version to be overridden" configuration is set.

      This is a drawback from the old @LIBRARY(...) syntax.

      pipeline {
          libraries {
              lib('TF_CD_LIB@master')
          }
      ...
      }
      

      Pipeline:

       

      Only using first definition of library TF_CD_LIB
      

       

          [JENKINS-54655] declarative library fails to override implicitly loaded library

          Michael Werner created issue -
          Michael Werner made changes -
          Assignee New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Assignee Original: Andrew Bayer [ abayer ]
          Ankur made changes -
          Comment [ [~xaseron] I am using declarative pipeline which does not seem to support @Library syntax. I am trying to use "library 'my-shared-library@my-special-branch'" but it makes no effect. It still loads the version defined in global settings. ]

            Unassigned Unassigned
            xaseron Michael Werner
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: