[JIRA] (JENKINS-52721) git checkout not working with multibranch on jenkins:2.121.2-alpine

7 views
Skip to first unread message

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 24, 2018, 11:28:01 AM7/24/18
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Jenkins / Bug JENKINS-52721
git checkout not working with multibranch on jenkins:2.121.2-alpine
Change By: Mark Waite
Summary: git checkout not working with multibranch on image jenkins:2.121.2-alpine
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 24, 2018, 11:30:01 AM7/24/18
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
git checkout with multibranch pipeline project is not working after upgrade to 2.121.2.
git checkout with normal pipeline project works (with same ssh credentials)
reverting to 2.121.1 fixes the problem (but is no long-term solution)



{noformat}
[Tue Jul 24 12:58:47 CEST 2018] Starting branch indexing...
> git --version # timeout=10
using GIT_SSH to set credentials SSH credentials zum Auschecken von Code
> git ls-remote --symref ssh://git@IP_blanked/Name_Blanked.git # timeout=10
> git rev-parse --is-inside-work-tree # timeout=10
Setting origin to ssh://git@IP_blanked/Name_Blanked.git
> git config remote.origin.url ssh://git@IP_blanked/Name_Blanked.git # timeout=10
Fetching & pruning origin...
Fetching upstream changes from origin
> git --version # timeout=10
using GIT_SSH to set credentials SSH credentials zum Auschecken von Code
> git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune
ERROR: [Tue Jul 24 12:58:47 CEST 2018] Could not fetch branches from source 8e33d544-92b6-4bf0-ac8f-bb4e9bfd13c2
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune" returned status code 128:
stdout:
stderr: build@IP_blanked: Permission denied (publickey).
fatal: Could not read from remote repository.

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

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:351)
at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:539)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:357)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:267)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:633)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
[Tue Jul 24 12:58:47 CEST 2018] Finished branch indexing. Indexing took 0.49 sec
FATAL: Failed to recompute children of firmware-binaries.branches.integration
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* --prune" returned status code 128:
stdout:
stderr: build@IP_blanked: Permission denied (publickey).
fatal: Could not read from remote repository.

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

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:351)
at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:539)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:357)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:267)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:633)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
{noformat}

Alpine Linux 3.8 includes OpenSSH 7.7.  OpenSSH 7.7 made an intentional behavioral change that broke the git client plugin in ssh authentication cases.  Git client plugin 2.7.2 fixed several of those cases but missed cases that were specifically running on the master (like multibranch pipeline fetch and pipeline fetch).  See JENKINS-50573 for more details.

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 24, 2018, 2:45:01 PM7/24/18
to jenkinsc...@googlegroups.com
Mark Waite updated Bug JENKINS-52721
 

Included in git client plugin 2.7.3 and git client plugin 3.0.0-beta4 released 24 July 2018.

Change By: Mark Waite
Status: Fixed but Unreleased Resolved

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:34:20 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Duplicate
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages