[JIRA] (JENKINS-39194) SCM checkout retry count is not working while loading pipeline using "Pipeline script from scm" option

954 views
Skip to first unread message

deep.anu98@yahoo.co.in (JIRA)

unread,
Oct 23, 2016, 1:24:10 AM10/23/16
to jenkinsc...@googlegroups.com
Anudeep Lalam updated an issue
 
Jenkins / Bug JENKINS-39194
SCM checkout retry count is not working while loading pipeline using "Pipeline script from scm" option
Change By: Anudeep Lalam
Hi Team,

We have set the value of {
{ color:red} SCM checkout retry count {color } } to 5. This is working well for free style jobs. The same is not working while loading pipeline using "Pipeline script from scm" option.

This could be a bug. Can you please check into this.

Thanks!
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

deep.anu98@yahoo.co.in (JIRA)

unread,
Oct 23, 2016, 1:32:45 AM10/23/16
to jenkinsc...@googlegroups.com
Anudeep Lalam created an issue
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-client-plugin, pipeline, scm-api-plugin
Created: 2016/Oct/22 8:28 PM
Priority: Critical Critical
Reporter: Anudeep Lalam

Hi Team,

We have set the value of SCM checkout retry count to 5. This is working well for free style jobs. The same is not working while loading pipeline using "Pipeline script from scm" option.

This could be a bug. Can you please check into this.

Thanks!

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

unread,
Oct 23, 2016, 11:36:06 AM10/23/16
to jenkinsc...@googlegroups.com

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

unread,
Oct 23, 2016, 11:39:01 AM10/23/16
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-39194
 
Re: SCM checkout retry count is not working while loading pipeline using "Pipeline script from scm" option

Anudeep Lalam can you provide more details, including step by step instructions and specific examples so that others can duplicate the problem you are reporting?

For example, please provide the pipeline script you're using which is not honoring the retry count, a description of how you detect the failure when the retry count is not honored, a detailed description of how you configured the working freestyle job (or a copy of the job configuration file), and the types of failures which cause the job to retry.

deep.anu98@yahoo.co.in (JIRA)

unread,
Oct 23, 2016, 2:01:01 PM10/23/16
to jenkinsc...@googlegroups.com
Anudeep Lalam updated an issue
Change By: Anudeep Lalam
Attachment: FreeStyle_Configuration.PNG
Attachment: FreeStyle_Output.PNG
Attachment: SCMRetryCount.PNG

deep.anu98@yahoo.co.in (JIRA)

unread,
Oct 23, 2016, 2:12:05 PM10/23/16
to jenkinsc...@googlegroups.com
Anudeep Lalam updated an issue
Change By: Anudeep Lalam
Attachment: Pipeline_Configuration.PNG
Attachment: Pipeline_Output.PNG

deep.anu98@yahoo.co.in (JIRA)

unread,
Oct 23, 2016, 2:15:01 PM10/23/16
to jenkinsc...@googlegroups.com
Anudeep Lalam commented on Bug JENKINS-39194
 
Re: SCM checkout retry count is not working while loading pipeline using "Pipeline script from scm" option

Mark Waite - Thanks for your comment. Here is the scenario.

In Manage Jenkins -> Configure System, I have put the SCM checkout retry count to 5.

Now to test the retry, I have created a free style job to clone a Git repository https://github.com/anudeeplalam/JenkinsTest1.git , which does not exist.

When I build this job, As you can see in the below picture, The retry is happening.(The retry happened 5 times. To keep short I have captured single retry.)

Now, When I try to use this in a Pipeline Job for loading Jenkinsfile using "Pipeline script from scm", it's not working

As you can see in the below picture, The pipeline job exited immediately after the first attempt. Ideally it has to retry "5 Times" just like the Free style Job.

deep.anu98@yahoo.co.in (JIRA)

unread,
Oct 23, 2016, 2:19:01 PM10/23/16
to jenkinsc...@googlegroups.com

Mark Waite - Sorry for a very big message. But I thought it would be better to show all the steps I followed so that it will be easy for you to understand what went wrong.

So, now coming to the point. Am I missing something here. Ideally my expectation is SCM checkout retry count should work for both Freestyle and Pipeline Jobs.

This is really a blocker for us. We would really appreciate if someone look into this.

Thanks!

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

unread,
Oct 23, 2016, 2:35:01 PM10/23/16
to jenkinsc...@googlegroups.com

Thanks for the description. That's exactly what is needed.

I don't expect to investigate it further for at least several months due to other, more common use cases which need investigation and fixes. I wanted enough of a description in the bug report that others might be able to investigate if they encounter the same problem.

I don't know if the global SCM retry setting that you are using should be honored in pipeline jobs or not. I'm not sure which layer of the Jenkins code implements that retry mechanism. I suspect it is in some component outside the git plugin, since it mentions "SCM checkout retry count" rather than "Git retry count".

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

unread,
Oct 23, 2016, 2:35:01 PM10/23/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages