Skip to content

Commit

Permalink
ci: Fix Jenkinsfile timeout more strictly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 committed Sep 9, 2020
1 parent c67d504 commit d5f02cc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pipeline {
options {
timestamps()
ansiColor('xterm')
timeout(time: 20, unit: 'MINUTES')
}
stages {
// stage('lint') {
Expand All @@ -27,10 +26,12 @@ pipeline {
}
}
steps {
checkout scm
sh "npm ci"
sh "npm run build"
sh "npm run test:ci"
timeout(time: 20, unit: 'MINUTES') {
checkout scm
sh "npm ci"
sh "npm run build"
sh "npm run test:ci"
}
}
post {
always {
Expand All @@ -57,8 +58,10 @@ pipeline {
DOCKER_BUILDKIT = '1'
}
steps {
checkout scm
sh "docker build -t ci_analyzer ."
timeout(time: 20, unit: 'MINUTES') {
checkout scm
sh "docker build -t ci_analyzer ."
}
}
}
}
Expand Down

0 comments on commit d5f02cc

Please sign in to comment.