Browse Source

jenkins: timeout and retry blocked git fetch

pr/spi.typo
Cenk Gündoğan 6 years ago
parent
commit
b523808043
  1. 10
      Jenkinsfile

10
Jenkinsfile vendored

@ -218,7 +218,11 @@ def abortOnError(msg)
def fetchPR(prNum, fetchArgs, extraRefSpec)
{
sh """git init; git remote add origin https://github.com/RIOT-OS/RIOT;
git fetch -u -n ${fetchArgs} origin ${extraRefSpec} pull/${prNum}/merge:pull_${prNum}
git checkout pull_${prNum}"""
retry(3) {
timeout(time: 60, unit: 'SECONDS') {
sh """git init; git remote add origin https://github.com/RIOT-OS/RIOT;
git fetch -u -n ${fetchArgs} origin ${extraRefSpec} pull/${prNum}/merge:pull_${prNum}
git checkout pull_${prNum}"""
}
}
}

Loading…
Cancel
Save