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

Shared libraries stopped loading with git tags. They only now work when I reference a git branch name

    Details

    • Similar Issues:

      Description

      I have a shared library in my Jenkins server that I call "common-pipelines". From within my Jenkinsfile, I will call for a specific tagged version of the common-pipelines shared library to be loaded like this:

      @Library('common-pipelines@v9.4.4') _ 

      I was just alerted that the pipelines are erroring with the following message:

      Please make sure you have the correct access rights
      and the repository exists. 

      However, we aren't sure what changed. After much sanity checking, I was able to determine that this works normally if I call for a branch name rather than a github release (git tag).

      In other words, this works just fine:

       @Library('common-pipelines@myBranchName') _ 

      I am running the latest plugins.

        Attachments

          Issue Links

            Activity

            piratejohnny Jon B created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Assignee Mark Waite [ markewaite ]
            piratejohnny Jon B made changes -
            Description I have a shared library in my Jenkins server that I call "common-pipelines". From within my Jenkinsfile, I will call for a specific version of the common-pipelines shared library to be loaded like this:
            {code:java}
            @Library('common-pipelines@v9.4.4') _ {code}
            I was just alerted that the pipelines are erroring with the following message:
            {code:java}
            Please make sure you have the correct access rights
            and the repository exists. {code}
            However, we aren't sure what changed. After much sanity checking, I was able to determine that this works normally if I call for a branch name rather than a github release (git tag).

            In other words, this works just fine:
            {code:java}
             @Library('common-pipelines@myBranchName') _ {code}
            I am running the latest plugins.
            I have a shared library in my Jenkins server that I call "common-pipelines". From within my Jenkinsfile, I will call for a specific *_tagged_* version of the common-pipelines shared library to be loaded like this:
            {code:java}
            @Library('common-pipelines@v9.4.4') _ {code}
            I was just alerted that the pipelines are erroring with the following message:
            {code:java}
            Please make sure you have the correct access rights
            and the repository exists. {code}
            However, we aren't sure what changed. After much sanity checking, I was able to determine that this works normally if I call for a branch name rather than a github release (git tag).

            In other words, this works just fine:
            {code:java}
             @Library('common-pipelines@myBranchName') _ {code}
            I am running the latest plugins.
            markewaite Mark Waite made changes -
            Component/s core [ 15593 ]
            Component/s git-plugin [ 15543 ]
            piratejohnny Jon B made changes -
            Summary Shared libraries stopped loading with git tags. The only now work when I reference a git branch name Shared libraries stopped loading with git tags. They only now work when I reference a git branch name
            oleg_nenashev Oleg Nenashev made changes -
            Component/s workflow-cps-global-lib-plugin [ 21714 ]
            Component/s core [ 15593 ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s pipeline [ 21692 ]
            piratejohnny Jon B made changes -
            Priority Minor [ 4 ] Blocker [ 1 ]
            piratejohnny Jon B made changes -
            Link This issue relates to JENKINS-50573 [ JENKINS-50573 ]
            piratejohnny Jon B made changes -
            Environment 2.133 2.133 alpine (https://hub.docker.com/r/jenkins/jenkins/tags/)
            markewaite Mark Waite made changes -
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                piratejohnny Jon B
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: