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:
commit
f072bce9ff
10
Jenkinsfile
vendored
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…
Reference in New Issue
Block a user