moved environment to stages
This commit is contained in:
parent
371ff6041f
commit
c24fa9e2c2
1 changed files with 15 additions and 8 deletions
17
Jenkins/release-pipeline/Jenkinsfile
vendored
17
Jenkins/release-pipeline/Jenkinsfile
vendored
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue