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 * * * *'
}
environment {
BUILD_ID="${JOB_BASE_NAME}-${BUILD_NUMBER}"
TARGET_DIR="/mnt/nfs/results/${BUILD_ID}"
MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
TARGET_DIR="/mnt/nfs/results/${MY_BUILD_ID}"
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
RESULT_DIR = "${WORKSPACE}\\results"
LLVM_DIR = "${WORKSPACE}\\llvm-project"
}
stage("build and test on Windows and Linux"){
parallel {
@ -57,7 +59,7 @@ pipeline {
}
post {
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}") {
// 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"