Skip to content

Commit

Permalink
remove single quotes from UFS_PLATFORM
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Kropp <[email protected]>
  • Loading branch information
BruceKropp-Raytheon committed Dec 10, 2024
1 parent da6e094 commit 7f75cce
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .cicd/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@ def generateStage(nodeLabel) {
return {
stage("Initialize on ${nodeLabel}") {
node(nodeLabel) {
environment {
UFS_PLATFORM = env.nodeLabel.toLowerCase()
}
script {
currentBuild.displayName = "#${BUILD_NUMBER} ${nodeLabel}"
currentBuild.displayName = "#${BUILD_NUMBER} ${nodeLabel} ${params.WM_OPERATIONAL_TEST}" ) {
}
cleanWs()
checkout scm
script {
def MY_PLATFORM = nodeLabel.toLowerCase()
echo "nodeLabel=${nodeLabel} MY_PLATFORM=${MY_PLATFORM} NODE_NAME=${NODE_NAME} UFS_PLATFORM=${env.UFS_PLATFORM} UFS_COMPILER=${env.UFS_COMPILER}"
def UFS_PLATFORM = nodeLabel.replaceAll("'","")
echo "nodeLabel=${nodeLabel} NODE_NAME=${NODE_NAME} UFS_PLATFORM=${env.UFS_PLATFORM} UFS_COMPILER=${env.UFS_COMPILER}"
sh 'bash --login "${WORKSPACE}/.cicd/scripts/wm_init.sh"'
sh "STAGE_NAME='${env.STAGE_NAME}' " + 'bash --login "${WORKSPACE}/.cicd/scripts/disk_usage.sh"'
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: false, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "*-*-time-wm_init.json", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 'main', userMetadata: []
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: false, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "${MY_PLATFORM}-*-disk-usageInit*.csv", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 'main', userMetadata: []
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'noaa-epic-prod-jenkins-artifacts', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: true, noUploadOnFailure: false, selectedRegion: 'us-east-1', showDirectlyInBrowser: false, sourceFile: "${UFS_PLATFORM}-*-disk-usageInit*.csv", storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 'main', userMetadata: []
}
}
}
Expand All @@ -60,7 +57,7 @@ def generateStage(nodeLabel) {
}
}
stage("Test on ${nodeLabel}") {
if (params.WM_OPERATIONAL_TEST != "none" ) {
if (params.WM_OPERATIONAL_TEST != 'none' ) {
node(nodeLabel) {
environment {
UFS_PLATFORM = nodeLabel.toLowerCase()
Expand Down Expand Up @@ -104,7 +101,7 @@ def generateStage(nodeLabel) {
}
}
stage("Post from ${nodeLabel}") {
if (params.WM_OPERATIONAL_TEST != "none" ) {
if (params.WM_OPERATIONAL_TEST != 'none' ) {
node(nodeLabel) {
script {
try {
Expand Down

0 comments on commit 7f75cce

Please sign in to comment.