Commit 59e46eef authored by Michal Chruscinski's avatar Michal Chruscinski Committed by omarkanawi

[ONNX CI] Add retry to clone step (#3594)

* Add retry to clone step

* Increase checkout timeout
parent 0ab7b470
...@@ -85,18 +85,22 @@ def checkoutSources() { ...@@ -85,18 +85,22 @@ def checkoutSources() {
} }
sh "rm -rf ${WORKSPACE}/*" sh "rm -rf ${WORKSPACE}/*"
dir ("${WORKDIR}/ngraph") { dir ("${WORKDIR}/ngraph") {
checkout([$class: 'GitSCM', retry(3) {
branches: [[name: "${NGRAPH_BRANCH}"]], checkout([$class: 'GitSCM',
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [], branches: [[name: "${NGRAPH_BRANCH}"]],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}", doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 120]], submoduleCfg: [],
url: "${NGRAPH_REPO_ADDRESS}"]]]) userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_REPO_ADDRESS}"]]])
}
} }
dir ("${WORKDIR}/ngraph-onnx") { dir ("${WORKDIR}/ngraph-onnx") {
checkout([$class: 'GitSCM', retry(3) {
branches: [[name: "${NGRAPH_ONNX_BRANCH}"]], checkout([$class: 'GitSCM',
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [], branches: [[name: "${NGRAPH_ONNX_BRANCH}"]],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}", doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 120]], submoduleCfg: [],
url: "${NGRAPH_ONNX_REPO_ADDRESS}"]]]) userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_ONNX_REPO_ADDRESS}"]]])
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment