[JIRA] (JENKINS-50868) Cannot checkout code via SHH when using

2 views
Skip to first unread message

zack81@gmx.net (JIRA)

unread,
Apr 18, 2018, 12:33:01 PM4/18/18
to jenkinsc...@googlegroups.com
Zack Snyder created an issue
 
Jenkins / Bug JENKINS-50868
Cannot checkout code via SHH when using
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: config.xml.zip, jenkins_ssh_credentials.jpg, Screenshot-2018-4-18 divas Config [Jenkins].png
Components: blueocean-plugin
Created: 2018-04-18 16:32
Environment: Windows10x64 slave agent
Ubuntu 16.04x64 master agent
Priority: Blocker Blocker
Reporter: Zack Snyder

I use blue ocean to configure and run my build.
However, when I switch to checkout over SHH, it will not take the setting and will still checkout via HTTP:

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

 > git config remote.origin.url http://bitbucket.SomeCompany.local/scm/~SomeUser/divas.git # timeout=10

Cleaning workspace

 > git rev-parse --verify HEAD # timeout=10

No valid HEAD. Skipping the resetting

 > git clean -fdx # timeout=10

Fetching without tags

Fetching upstream changes from http://bitbucket.SomeCompany.local/scm/~SomeUser/divas.git

 > git --version # timeout=10

 > git fetch --no-tags --progress http://bitbucket.SomeCompany.local/scm/~SomeUser/divas.git +refs/heads/add-jenkins-file:refs/remotes/origin/add-jenkins-file

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException: Failed to fetch from http://bitbucket.SomeCompany.local/scm/~SomeUser/divas.git

	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862)

	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129)

	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)

	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)

I can also not add another for the SHH checkout, see the small picture.
Adding a new one via "Add" will not add them as option in the combobox.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages