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

Pipeline library name with hyphen is not available as an environment variable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core

      If I use a Library name such as pipeline-common, the library.pipeline-common.version environment variable is not available. When I try and using it in the SCM configuration (i.e. tags/${library.pipeline-common.version}), the literal value is used in the Git operations:

      > git fetch --tags --progress https://<redacted>/pipeline-common.git +refs/heads/*:refs/remotes/origin/*
       > git rev-parse tags/${library.pipeline-common.version}^{commit} # timeout=10
      

      If I change the Library name to simply pipeline, the feature works as expected.

            Unassigned Unassigned
            timeapen Tim Eapen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: