Skip to content

Commit

Permalink
add boolean whether to run build stage before regression test
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Kropp <bruce.kropp@raytheon.com>
  • Loading branch information
BruceKropp-Raytheon committed Dec 9, 2024
1 parent f7f5531 commit cce3978
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .cicd/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ def generateStage(nodeLabel) {
}
}
stage("Build on ${nodeLabel}") {
when {
beforeAgent true
allOf {
expression { params.WM_BUILD }
}
}

node(nodeLabel) {
script {
echo "Building on ${nodeLabel}"
currentBuild.displayName = "#${BUILD_NUMBER} ${nodeLabel} <compiler>"
//currentBuild.description = ""

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

0 comments on commit cce3978

Please sign in to comment.