1
0
Fork 0

moved environment to stages

This commit is contained in:
Christian Kühnel 2020-01-16 17:55:15 +01:00
parent 371ff6041f
commit c24fa9e2c2

View file

@ -18,6 +18,11 @@ pipeline {
triggers { triggers {
pollSCM 'H/5 * * * *' pollSCM 'H/5 * * * *'
} }
stages {
stage("build and test on Windows and Linux"){
parallel {
stage("Linux"){
agent { label "linux"}
environment { environment {
MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}" MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
TARGET_DIR="/mnt/nfs/results/${MY_BUILD_ID}" TARGET_DIR="/mnt/nfs/results/${MY_BUILD_ID}"
@ -25,11 +30,6 @@ pipeline {
RESULT_DIR = "${WORKSPACE}\\results" RESULT_DIR = "${WORKSPACE}\\results"
LLVM_DIR = "${WORKSPACE}\\llvm-project" LLVM_DIR = "${WORKSPACE}\\llvm-project"
} }
stages {
stage("build and test on Windows and Linux"){
parallel {
stage("Linux"){
agent { label "linux"}
stages { stages {
stage("git checkout"){ stage("git checkout"){
steps { steps {
@ -74,6 +74,13 @@ pipeline {
} }
stage("Windows"){ stage("Windows"){
agent { label "windows"} agent { label "windows"}
environment {
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"
}
stages { stages {
stage("git checkout"){ stage("git checkout"){
steps { steps {