- 
    Bug 
- 
    Resolution: Not A Defect
- 
    Major 
- 
    None
- 
    ||plugin||version||
 |ace-editor|1.1|
 |ansicolor|0.5.0|
 |ant|1.5|
 |antisamy-markup-formatter|1.5|
 |authentication-tokens|1.3|
 |aws-credentials|1.21|
 |aws-java-sdk|1.11.119|
 |blueocean|1.1.5|
 |blueocean-autofavorite|1.0.0|
 |blueocean-commons|1.1.5|
 |blueocean-config|1.1.5|
 |blueocean-dashboard|1.1.5|
 |blueocean-display-url|2.1.0|
 |blueocean-events|1.1.5|
 |blueocean-github-pipeline|1.1.5|
 |blueocean-git-pipeline|1.1.5|
 |blueocean-i18n|1.1.5|
 |blueocean-jwt|1.1.5|
 |blueocean-personalization|1.1.5|
 |blueocean-pipeline-api-impl|1.1.5|
 |blueocean-pipeline-editor|0.2.0|
 |blueocean-pipeline-scm-api|1.1.5|
 |blueocean-rest|1.1.5|
 |blueocean-rest-impl|1.1.5|
 |blueocean-web|1.1.5|
 |bouncycastle-api|2.16.2|
 |branch-api|2.0.11|
 |build-timeout|1.18|
 |cloudbees-folder|6.1.0|
 |conditional-buildstep|1.3.6|
 |config-file-provider|2.16.1|
 |credentials|2.1.14|
 |credentials-binding|1.12|
 |custom-tools-plugin|0.5|
 |display-url-api|2.0|
 |docker-commons|1.8|
 |docker-workflow|1.12|
 |durable-task|1.14|
 |email-ext|2.58|
 |extended-choice-parameter|0.76|
 |extensible-choice-parameter|1.4.0|
 |external-monitor-job|1.7|
 |favorite|2.3.0|
 |flaky-test-handler|1.0.4|
 |git|3.5.0|
 |git-client|2.5.0|
 |github|1.27.0|
 |github-api|1.86|
 |github-branch-source|2.2.3|
 |github-organization-folder|1.6|
 |github-pullrequest|0.1.0-rc25|
 |git-server|1.7|
 |groovy-postbuild|2.3.1|
 |handlebars|1.1.1|
 |icon-shim|2.0.3|
 |jackson2-api|2.7.3|
 |javadoc|1.4|
 |jquery|1.11.2-0|
 |jquery-detached|1.2.1|
 |jsch|0.1.54.1|
 |junit|1.20|
 |ldap|1.16|
 |mailer|1.20|
 |matrix-auth|1.7|
 |matrix-project|1.11|
 |maven-plugin|2.17|
 |metrics|3.1.2.10|
 |momentjs|1.1.1|
 |pam-auth|1.3|
 |parameterized-trigger|2.35.1|
 |pipeline-build-step|2.5.1|
 |pipeline-github-lib|1.0|
 |pipeline-graph-analysis|1.4|
 |pipeline-input-step|2.7|
 |pipeline-maven|2.5.2|
 |pipeline-milestone-step|1.3.1|
 |pipeline-model-api|1.1.9|
 |pipeline-model-declarative-agent|1.1.1|
 |pipeline-model-definition|1.1.9|
 |pipeline-model-extensions|1.1.9|
 |pipeline-rest-api|2.8|
 |pipeline-stage-step|2.2|
 |pipeline-stage-tags-metadata|1.1.9|
 |pipeline-stage-view|2.8|
 |pipeline-utility-steps|1.3.0|
 |plain-credentials|1.4|
 |pubsub-light|1.12|
 |rebuild|1.25|
 |resource-disposer|0.6|
 |run-condition|1.0|
 |scm-api|2.2.0|
 |script-security|1.30|
 |sse-gateway|1.15|
 |ssh|2.5|
 |ssh-agent|1.15|
 |ssh-credentials|1.13|
 |ssh-slaves|1.20|
 |structs|1.9|
 |terraform|1.0.9|
 |timestamper|1.8.8|
 |token-macro|2.1|
 |variant|1.1|
 |windows-slaves|1.3.1|
 |workflow-aggregator|2.5|
 |workflow-api|2.19|
 |workflow-basic-steps|2.6|
 |workflow-cps|2.37|
 |workflow-cps-global-lib|2.8|
 |workflow-durable-task-step|2.13|
 |workflow-job|2.13|
 |workflow-multibranch|2.16|
 |workflow-scm-step|2.6|
 |workflow-step-api|2.12|
 |workflow-support|2.14|
 |ws-cleanup|0.34|
 
 ||plugin||version|| |ace-editor|1.1| |ansicolor|0.5.0| |ant|1.5| |antisamy-markup-formatter|1.5| |authentication-tokens|1.3| |aws-credentials|1.21| |aws-java-sdk|1.11.119| |blueocean|1.1.5| |blueocean-autofavorite|1.0.0| |blueocean-commons|1.1.5| |blueocean-config|1.1.5| |blueocean-dashboard|1.1.5| |blueocean-display-url|2.1.0| |blueocean-events|1.1.5| |blueocean-github-pipeline|1.1.5| |blueocean-git-pipeline|1.1.5| |blueocean-i18n|1.1.5| |blueocean-jwt|1.1.5| |blueocean-personalization|1.1.5| |blueocean-pipeline-api-impl|1.1.5| |blueocean-pipeline-editor|0.2.0| |blueocean-pipeline-scm-api|1.1.5| |blueocean-rest|1.1.5| |blueocean-rest-impl|1.1.5| |blueocean-web|1.1.5| |bouncycastle-api|2.16.2| |branch-api|2.0.11| |build-timeout|1.18| |cloudbees-folder|6.1.0| |conditional-buildstep|1.3.6| |config-file-provider|2.16.1| |credentials|2.1.14| |credentials-binding|1.12| |custom-tools-plugin|0.5| |display-url-api|2.0| |docker-commons|1.8| |docker-workflow|1.12| |durable-task|1.14| |email-ext|2.58| |extended-choice-parameter|0.76| |extensible-choice-parameter|1.4.0| |external-monitor-job|1.7| |favorite|2.3.0| |flaky-test-handler|1.0.4| |git|3.5.0| |git-client|2.5.0| |github|1.27.0| |github-api|1.86| |github-branch-source|2.2.3| |github-organization-folder|1.6| |github-pullrequest|0.1.0-rc25| |git-server|1.7| |groovy-postbuild|2.3.1| |handlebars|1.1.1| |icon-shim|2.0.3| |jackson2-api|2.7.3| |javadoc|1.4| |jquery|1.11.2-0| |jquery-detached|1.2.1| |jsch|0.1.54.1| |junit|1.20| |ldap|1.16| |mailer|1.20| |matrix-auth|1.7| |matrix-project|1.11| |maven-plugin|2.17| |metrics|3.1.2.10| |momentjs|1.1.1| |pam-auth|1.3| |parameterized-trigger|2.35.1| |pipeline-build-step|2.5.1| |pipeline-github-lib|1.0| |pipeline-graph-analysis|1.4| |pipeline-input-step|2.7| |pipeline-maven|2.5.2| |pipeline-milestone-step|1.3.1| |pipeline-model-api|1.1.9| |pipeline-model-declarative-agent|1.1.1| |pipeline-model-definition|1.1.9| |pipeline-model-extensions|1.1.9| |pipeline-rest-api|2.8| |pipeline-stage-step|2.2| |pipeline-stage-tags-metadata|1.1.9| |pipeline-stage-view|2.8| |pipeline-utility-steps|1.3.0| |plain-credentials|1.4| |pubsub-light|1.12| |rebuild|1.25| |resource-disposer|0.6| |run-condition|1.0| |scm-api|2.2.0| |script-security|1.30| |sse-gateway|1.15| |ssh|2.5| |ssh-agent|1.15| |ssh-credentials|1.13| |ssh-slaves|1.20| |structs|1.9| |terraform|1.0.9| |timestamper|1.8.8| |token-macro|2.1| |variant|1.1| |windows-slaves|1.3.1| |workflow-aggregator|2.5| |workflow-api|2.19| |workflow-basic-steps|2.6| |workflow-cps|2.37| |workflow-cps-global-lib|2.8| |workflow-durable-task-step|2.13| |workflow-job|2.13| |workflow-multibranch|2.16| |workflow-scm-step|2.6| |workflow-step-api|2.12| |workflow-support|2.14| |ws-cleanup|0.34|
After upgrading the github-branch-source-plugin from 2.0.8 to 2.2.3, loading a pipeline shared library (that uses github as its source) by tag no longer works.
Meaning, I have a Jenkinsfile that uses
@Library('some-shared-library@0.1') _
where 0.1 is a tag
Here's the relevant build output when github-branch-source-plugin 2.2.3 is installed:
 
21:20:45 Connecting to https://**masked**/api/v3 using *****/****** (User name and password for **masked**) Obtained Jenkinsfile from 2ef326e043489c46f168b98385699ecb054e946a Loading library some-shared-library@0.1 > git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://**masked**/SE/some-shared-library.git > git config remote.origin.url https://**masked**/SE/some-shared-library.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 using GIT_ASKPASS to set credentials User name and password for **masked** > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* > git rev-parse 0.1^{commit} # timeout=10 > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://**masked**/SE/some-shared-library.git # timeout=10 Fetching without tags Fetching upstream changes from https://**masked**/SE/some-shared-library.git > git --version # timeout=10 using GIT_ASKPASS to set credentials User name and password for **masked** > git fetch --no-tags --progress https://**masked**/SE/some-shared-library.git +refs/heads/0.1:refs/remotes/origin/0.1 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://**masked**/SE/some-shared-library.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:817) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1084) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1115) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:108) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:84) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:150) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:131) at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:114) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) at groovy.lang.GroovyShell.parse(GroovyShell.java:700) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:129) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:123) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:516) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:479) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:268) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:415) Caused by: hudson.plugins.git.GitException: Command "git fetch --no-tags --progress https://**masked**/SE/some-shared-library.git +refs/heads/0.1:refs/remotes/origin/0.1" returned status code 128: stdout: stderr: fatal: Couldn't find remote ref refs/heads/0.1 Unexpected end of command stream at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1643) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:352) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:815) ... 23 more ERROR: Error fetching remote repo 'origin'
For comparison, here is the build output after I downgraded github-branch-source-plugin back to 2.0.8:
21:23:16 Connecting to https://**masked**/api/v3 using **masked**/****** (User name and password for **masked**) Obtained Jenkinsfile from 2ef326e043489c46f168b98385699ecb054e946a Loading library some-shared-library@0.1 > git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://**masked**/SE/some-shared-library.git > git config remote.origin.url https://**masked**/SE/some-shared-library.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 using GIT_ASKPASS to set credentials User name and password for **masked** > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* > git rev-parse 0.1^{commit} # timeout=10 > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://**masked**/SE/some-shared-library.git # timeout=10 Fetching without tags Fetching upstream changes from https://**masked**/SE/some-shared-library.git > git --version # timeout=10 using GIT_ASKPASS to set credentials User name and password for **masked** > git fetch --no-tags --progress https://**masked**/SE/some-shared-library.git +refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/* Checking out Revision 367c19fffbe5cb27ae5b23946db20483fe70532b (0.1) Commit message: "improve docs" > git config core.sparsecheckout # timeout=10 > git checkout -f 367c19fffbe5cb27ae5b23946db20483fe70532b > git rev-list 367c19fffbe5cb27ae5b23946db20483fe70532b # timeout=10
The main difference being that this command (using 2.0.8):
 > git fetch --no-tags --progress https://**masked**/SE/some-shared-library.git +refs/heads/*:refs/remotes/origin/* +refs/pull/*/head:refs/remotes/origin/pr/*
changed to this command (using 2.2.3):
 > git fetch --no-tags --progress https://**masked**/SE/some-shared-library.git +refs/heads/0.1:refs/remotes/origin/0.1
Notice the change in the ref specs
  
Downgrading the github-branch-source back to 2.0.8 corrects the issue.
- is duplicated by
- 
                    JENKINS-45830 Unable to load library from GitHub PR or SHA1 using Github SCM -         
- Resolved
 
-         
- relates to
- 
                    JENKINS-45830 Unable to load library from GitHub PR or SHA1 using Github SCM -         
- Resolved
 
-