🔃 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:
Major Hayden 2020-07-02 11:14:59 -05:00 committed by Ondřej Budai
parent 0c6848f946
commit ff88691cc7

16
schutzbot/Jenkinsfile vendored
View file

@ -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'