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() {
}
sh "rm -rf ${WORKSPACE}/*"
dir ("${WORKDIR}/ngraph") {
checkout([$class: 'GitSCM',
branches: [[name: "${NGRAPH_BRANCH}"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_REPO_ADDRESS}"]]])
retry(3) {
checkout([$class: 'GitSCM',
branches: [[name: "${NGRAPH_BRANCH}"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 120]], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_REPO_ADDRESS}"]]])
}
}
dir ("${WORKDIR}/ngraph-onnx") {
checkout([$class: 'GitSCM',
branches: [[name: "${NGRAPH_ONNX_BRANCH}"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 30]], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "${JENKINS_GITHUB_CREDENTIAL_ID}",
url: "${NGRAPH_ONNX_REPO_ADDRESS}"]]])
retry(3) {
checkout([$class: 'GitSCM',
branches: [[name: "${NGRAPH_ONNX_BRANCH}"]],
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', timeout: 120]], submoduleCfg: [],
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