[ci] support timeout per stages
@@ -27,7 +27,6 @@ pipeline {
PIP_CACHE = "${env.WORKSPACE}/.cache"
}
options {
- timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20', daysToKeepStr: '30'))
timestamps()
ansiColor('xterm')
@@ -47,9 +46,9 @@ pipeline {
}
stages {
stage('Initializing'){
- options { skipDefaultCheckout() }
- environment {
- PATH = "${env.WORKSPACE}/.local/bin:${env.WORKSPACE}/bin:${env.PATH}"
+ options {
+ skipDefaultCheckout()
+ timeout(time: 1, unit: 'HOURS')
}
stages {
/**
@@ -80,6 +79,9 @@ pipeline {
}
}
}
+ environment {
+ PATH = "${env.WORKSPACE}/.local/bin:${env.WORKSPACE}/bin:${env.PATH}"
+ }
steps {
withGithubNotify(context: 'Sanity checks', tab: 'tests') {
deleteDir()
@@ -95,8 +97,6 @@ pipeline {
}
}
}
- }
- }
/**
Execute unit tests.
*/
@@ -241,6 +241,8 @@ pipeline {
}
}
}
+ }
+ }
stage('Prepare Release') {
options {
skipDefaultCheckout()
