Skip to content

Commit cce3978

Browse files
add boolean whether to run build stage before regression test
Signed-off-by: Bruce Kropp <bruce.kropp@raytheon.com>
1 parent f7f5531 commit cce3978

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.cicd/Jenkinsfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,20 @@ def generateStage(nodeLabel) {
2828
}
2929
}
3030
stage("Build on ${nodeLabel}") {
31+
when {
32+
beforeAgent true
33+
allOf {
34+
expression { params.WM_BUILD }
35+
}
36+
}
37+
3138
node(nodeLabel) {
3239
script {
3340
echo "Building on ${nodeLabel}"
3441
currentBuild.displayName = "#${BUILD_NUMBER} ${nodeLabel} <compiler>"
3542
//currentBuild.description = ""
3643

37-
echo 'bash --login "${WORKSPACE}/.cicd/scripts/wm_build.sh"'
44+
sh 'bash --login "${WORKSPACE}/.cicd/scripts/wm_build.sh"'
3845
sh "STAGE_NAME='${env.STAGE_NAME}' " + 'bash --login "${WORKSPACE}/.cicd/scripts/disk_usage.sh"'
3946
}
4047
}
@@ -101,6 +108,7 @@ def parallelStagesMap = modifiedLabels.collectEntries {
101108
pipeline {
102109
agent none
103110
parameters {
111+
booleanParam name: 'WM_BUILD', defaultValue: false, description: 'Whether to attempt to compile the model code tests'
104112
// Regression Test Suite ?
105113
choice(name: 'WM_OPERATIONAL_TESTS', choices: ['default', 'control_p8', 'cpld_control_p8', 'comprehensive', 'rt.sh', 'none'], description: 'Specify the suite of tests to run')
106114
}

0 commit comments

Comments
 (0)