From c0f5ffd297e3b50b5be8935314297889fbb0215a Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Thu, 1 Jun 2017 09:41:00 -0700 Subject: Enable temporary auto-retry for scm checkout Wrap the scm checkout in a retry. This is not ideal as it doesn't cover the scm checkout of the pipeline script itself. It should fix some of the git issues we've seen. The real bug is https://issues.jenkins-ci.org/browse/JENKINS-39194. This means that "checkout scm" would honor the global scm checkout retry count for both the step as well as the pipeline checkout --- buildpipeline/portable-windows.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buildpipeline') diff --git a/buildpipeline/portable-windows.groovy b/buildpipeline/portable-windows.groovy index e4980dc801..e5f222c0f6 100644 --- a/buildpipeline/portable-windows.groovy +++ b/buildpipeline/portable-windows.groovy @@ -9,7 +9,9 @@ def submittedHelixJson = null simpleNode('Windows_NT','latest') { stage ('Checkout source') { - checkout scm + retry (10) { + checkout scm + } } def logFolder = getLogFolder() -- cgit v1.2.3