diff --git a/Jenkins/master-linux-pipeline/Jenkinsfile b/Jenkins/master-linux-pipeline/Jenkinsfile index 40cfb51..292d215 100644 --- a/Jenkins/master-linux-pipeline/Jenkinsfile +++ b/Jenkins/master-linux-pipeline/Jenkinsfile @@ -23,6 +23,7 @@ pipeline { SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts" } options { + // set build timeout timeout(time:2, unit:'HOURS') } stages { diff --git a/Jenkins/master-windows-pipeline/Jenkinsfile b/Jenkins/master-windows-pipeline/Jenkinsfile index 0abd6a6..8ac6c6a 100644 --- a/Jenkins/master-windows-pipeline/Jenkinsfile +++ b/Jenkins/master-windows-pipeline/Jenkinsfile @@ -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 {