Explorar o código

Add timeout 5 min to jenkins pipeline

Vadim Surkov %!s(int64=6) %!d(string=hai) anos
pai
achega
cc81058218
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Jenkinsfile

+ 3 - 0
Jenkinsfile

@@ -2,6 +2,9 @@ pipeline {
   agent {
     label "swarm"
   }
+  options {
+    disableConcurrentBuilds()
+    timeout(time: 5, unit: 'MINUTES')
   environment {
     DOCKER_IMAGE='node'
     SWARM_GIT_URL='ssh://git@git.sdsys.ru:8022/iru/stack-deploy.git'