1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #6425 from cgundogan/pr/jenkins_git_fetch_timeout

jenkins: timeout and retry blocked git fetch
This commit is contained in:
Sebastian Meiling 2017-01-19 14:52:14 +01:00 committed by GitHub
commit f072bce9ff

10
Jenkinsfile vendored
View File

@ -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}"""
}
}
}