1
0
Fork 0

fixed options tag

This commit is contained in:
Christian Kühnel 2020-04-24 11:37:02 +02:00
parent 2451e00559
commit a3e2cf8509
2 changed files with 8 additions and 5 deletions

View file

@ -23,6 +23,7 @@ pipeline {
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts" SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
} }
options { options {
// set build timeout
timeout(time:2, unit:'HOURS') timeout(time:2, unit:'HOURS')
} }
stages { stages {

View file

@ -25,8 +25,12 @@ pipeline {
pollSCM 'H H/4 * * *' pollSCM 'H H/4 * * *'
} }
// enable timestaps for getting execution times options {
options { timestamps () } // enable timestaps for getting execution times
timestamps ()
// set build timeout
timeout(time:2, unit:'HOURS')
}
environment { environment {
MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}" MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
@ -34,9 +38,7 @@ pipeline {
RESULT_DIR = "${WORKSPACE}\\results" RESULT_DIR = "${WORKSPACE}\\results"
LLVM_DIR = "${WORKSPACE}\\llvm-project" LLVM_DIR = "${WORKSPACE}\\llvm-project"
} }
options {
timeout(time:2, unit:'HOURS')
}
stages { stages {
stage("git checkout"){ stage("git checkout"){
steps { steps {