Time out after 10 minutes of inactivity.
gitea/icedream/freetz-7362sl/master Something is wrong with the build of this commit Details

master
Icedream 2018-12-10 10:39:15 +01:00
parent 3460e43ff2
commit edeacbad50
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 7 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -36,12 +36,14 @@ node("linux && amd64 && docker") {
cd /freetz cd /freetz
su freetz -c \"sh -c 'umask 0022 && make oldconfig'\" su freetz -c \"sh -c 'umask 0022 && make oldconfig'\"
""" """
timeout(activity: true, time: 10) { // Time out after 10 min of inactivity
retry(10) { retry(10) {
sh """ sh """
cd /freetz cd /freetz
su freetz -c \"sh -c 'umask 0022 && make'\" su freetz -c \"sh -c 'umask 0022 && make'\"
""" """
} }
}
sh """ sh """
cd /freetz cd /freetz
cp -r images outboard \"${env.WORKSPACE}\" cp -r images outboard \"${env.WORKSPACE}\"