1
0
Fork 0

adde missing variables

This commit is contained in:
Christian Kühnel 2020-01-16 17:44:41 +01:00
parent 86a3209286
commit b35a00dc57

View file

@ -17,9 +17,11 @@ pipeline {
pollSCM '*/5 * * * *' pollSCM '*/5 * * * *'
} }
environment { environment {
BUILD_ID="${JOB_BASE_NAME}-${BUILD_NUMBER}" MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
TARGET_DIR="/mnt/nfs/results/${BUILD_ID}" TARGET_DIR="/mnt/nfs/results/${MY_BUILD_ID}"
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts" SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
RESULT_DIR = "${WORKSPACE}\\results"
LLVM_DIR = "${WORKSPACE}\\llvm-project"
} }
stage("build and test on Windows and Linux"){ stage("build and test on Windows and Linux"){
parallel { parallel {
@ -57,7 +59,7 @@ pipeline {
} }
post { post {
always { always {
echo "Console log is available at https://results.new.llvm-merge-guard.org/${BUILD_ID}" echo "Console log is available at https://results.new.llvm-merge-guard.org/${MY_BUILD_ID}"
dir("${env.TARGET_DIR}") { dir("${env.TARGET_DIR}") {
// copy console log to result folder // copy console log to result folder
sh "wget -qO console-log.txt http://jenkins-ui.jenkins.svc.cluster.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText" sh "wget -qO console-log.txt http://jenkins-ui.jenkins.svc.cluster.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText"