Add timing out docker executable
This commit is contained in:
parent
bdf761ad95
commit
878a69bcd0
|
|
@ -20,6 +20,7 @@ pipeline {
|
|||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh 'sh kill_days_containers.sh'
|
||||
sh 'docker system prune -a -f'
|
||||
sh 'install timeout_docker.sh /usr/local/bin/docker'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -31,6 +32,7 @@ pipeline {
|
|||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh 'sh kill_days_containers.sh'
|
||||
sh 'docker system prune -a -f'
|
||||
sh 'install timeout_docker.sh /usr/local/bin/docker'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -42,6 +44,7 @@ pipeline {
|
|||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh 'sh kill_days_containers.sh'
|
||||
sh 'docker system prune -a -f'
|
||||
sh 'install timeout_docker.sh /usr/local/bin/docker'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -53,6 +56,7 @@ pipeline {
|
|||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh 'sh kill_days_containers.sh'
|
||||
sh 'docker system prune -a -f'
|
||||
sh 'install timeout_docker.sh /usr/local/bin/docker'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
timeout -f --kill-after=1 5h /usr/bin/docker "$@"
|
||||
|
||||
Loading…
Reference in New Issue