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"
}
options {
// set build timeout
timeout(time:2, unit:'HOURS')
}
stages {

View file

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