[JIRA] (JENKINS-60143) Behaviour SSH Checkout not working after Jenkins restart

0 views
Skip to first unread message

parichay.barpanda@gmail.com (JIRA)

unread,
Mar 25, 2020, 6:56:02 PM3/25/20
to jenkinsc...@googlegroups.com
Parichay Barpanda updated an issue
 
Jenkins / Bug JENKINS-60143
Behaviour SSH Checkout not working after Jenkins restart
Change By: Parichay Barpanda
Summary: Behavior Behaviour SSH Checkout not working after Jenkins restart
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

tamerlaha@gmail.com (JIRA)

unread,
Mar 25, 2020, 10:14:07 PM3/25/20
to jenkinsc...@googlegroups.com
ipleten commented on Bug JENKINS-60143
 
Re: Behaviour SSH Checkout not working after Jenkins restart

Hello, we don't use 'checkout over ssh' trait. SSH creds are set in 'Checkout Credentials', anyway I also tried trait and result is the same.

vincent.letarouilly@gmail.com (JIRA)

unread,
Mar 26, 2020, 7:05:03 AM3/26/20
to jenkinsc...@googlegroups.com

I'm using the Checkout over SSH trait and still have the same issue when Jenkins is restarting.

It is pretty annoying for us at the moment because we are setting up a new Jenkins instance and we are restarting it a lot when installing other plugins or doing some tests.

Jenkins version 2.227
gitlab-branch-source-plugin version 1.4.4

tamerlaha@gmail.com (JIRA)

unread,
Mar 26, 2020, 11:31:03 PM3/26/20
to jenkinsc...@googlegroups.com

vincent.letarouilly@gmail.com (JIRA)

unread,
Apr 1, 2020, 5:40:02 AM4/1/20
to jenkinsc...@googlegroups.com

This is also happening when triggering a "Reload Configuration from Disk" from the "Manage Jenkins" menu.

vincent.letarouilly@gmail.com (JIRA)

unread,
Apr 2, 2020, 12:51:03 PM4/2/20
to jenkinsc...@googlegroups.com

I added a few logs in GitLabSCMBuilder.java and it seems that his httpRemote & sshRemote fields are null when Jenkins restarted:

serverUrl: [https://git.example.io]
httpRemote: [null]
sshRemote: [null]
credentialsId: [gitlab-deploy-key]
projectPath: [opa/jenkins-test]

I added this log just before withGitLabRemote(); on line 205

vincent.letarouilly@gmail.com (JIRA)

unread,
Apr 3, 2020, 3:20:02 AM4/3/20
to jenkinsc...@googlegroups.com

Could it be because of the transient fields in GitLabSCMSource class ?

josephp90@gmail.com (JIRA)

unread,
Apr 3, 2020, 7:22:03 AM4/3/20
to jenkinsc...@googlegroups.com

There is no reason for these fields being transient, feel free to submit a PR that removes transient for those fields.

parichay.barpanda@gmail.com (JIRA)

unread,
Apr 3, 2020, 8:41:07 AM4/3/20
to jenkinsc...@googlegroups.com
Parichay Barpanda started work on Bug JENKINS-60143
 
Change By: Parichay Barpanda
Status: Open In Progress

parichay.barpanda@gmail.com (JIRA)

unread,
Apr 3, 2020, 8:41:09 AM4/3/20
to jenkinsc...@googlegroups.com

parichay.barpanda@gmail.com (JIRA)

unread,
Apr 3, 2020, 8:44:18 AM4/3/20
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Apr 3, 2020, 2:29:04 PM4/3/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages