🔃 Retry mock build up to 3 times
Sometimes dnf has issues downloading RPMs or downloading the repo XML and this breaks the mock build. Try to run the mock builds three times before giving up. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
0c6848f946
commit
ff88691cc7
1 changed files with 12 additions and 4 deletions
16
schutzbot/Jenkinsfile
vendored
16
schutzbot/Jenkinsfile
vendored
|
|
@ -42,7 +42,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
sh "schutzbot/ci_details.sh"
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
retry(3) {
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
}
|
||||
stash (
|
||||
includes: 'osbuild-mock.repo',
|
||||
name: 'fedora31'
|
||||
|
|
@ -56,7 +58,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
sh "schutzbot/ci_details.sh"
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
retry(3) {
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
}
|
||||
stash (
|
||||
includes: 'osbuild-mock.repo',
|
||||
name: 'fedora32'
|
||||
|
|
@ -70,7 +74,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
sh "schutzbot/ci_details.sh"
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
retry(3) {
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
}
|
||||
stash (
|
||||
includes: 'osbuild-mock.repo',
|
||||
name: 'rhel8cdn'
|
||||
|
|
@ -87,7 +93,9 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
sh "schutzbot/ci_details.sh"
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
retry(3) {
|
||||
sh "schutzbot/mockbuild.sh"
|
||||
}
|
||||
stash (
|
||||
includes: 'osbuild-mock.repo',
|
||||
name: 'rhel83'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue