1
0
Fork 0

another try with variables...

This commit is contained in:
Christian Kühnel 2019-10-23 12:12:42 -07:00
parent 8ba3e241ec
commit 5fc004cf51

View file

@ -18,8 +18,8 @@ pipeline {
pollSCM 'H H/2 * * *' pollSCM 'H H/2 * * *'
} }
environment { environment {
BUILD_ID='${env.JOB_BASE_NAME}-${env.BUILD_NUMBER}' BUILD_ID="${JOB_BASE_NAME}-${BUILD_NUMBER}"
TARGET_DIR='/mnt/nfs/results/${BUILD_ID}' TARGET_DIR="/mnt/nfs/results/${BUILD_ID}"
} }
stages { stages {
stage("git checkout"){ stage("git checkout"){
@ -56,10 +56,10 @@ pipeline {
} }
post { post {
always { always {
echo "Console log is available at https://results.new.llvm-mgerge-guards/${env.BUILD_ID}" echo "Console log is available at https://results.new.llvm-mgerge-guards/${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/${env.JOB_BASE_NAME}/${env.BUILD_NUMBER}/consoleText" sh "wget -qO console-log.txt http://jenkins-ui.jenkins.svc.cluster.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText"
} }
} }
} }