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

12
Jenkinsfile vendored
View File

@ -36,11 +36,13 @@ 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'\"
""" """
retry(10) { timeout(activity: true, time: 10) { // Time out after 10 min of inactivity
sh """ retry(10) {
cd /freetz sh """
su freetz -c \"sh -c 'umask 0022 && make'\" cd /freetz
""" su freetz -c \"sh -c 'umask 0022 && make'\"
"""
}
} }
sh """ sh """
cd /freetz cd /freetz