diff options
author | Matt Mitchell <mmitche@microsoft.com> | 2017-06-01 19:41:00 +0300 |
---|---|---|
committer | Matt Mitchell <mmitche@microsoft.com> | 2017-06-01 19:41:00 +0300 |
commit | c0f5ffd297e3b50b5be8935314297889fbb0215a (patch) | |
tree | d4bdab834899ee61fef17ad81b55ea64f03332d8 /buildpipeline | |
parent | 3bc879503708488ce4365a312a3667e1653a4c41 (diff) |
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
Diffstat (limited to 'buildpipeline')
-rw-r--r-- | buildpipeline/portable-windows.groovy | 4 |
1 files changed, 3 insertions, 1 deletions
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() |