@@ -18,10 +18,10 @@ modifiedLabels = matchedNode.collect{"'" + it + "'"}
18
18
baselineLabels = generateBaselineNode. collect{" '" + it + " '" }
19
19
def generateStage (nodeLabel ) {
20
20
return {
21
- stage(" Initialize on ${ nodeLabel} " ) {
21
+ stage(" Initialize on ${ nodeLabel.replaceAll("'","") } " ) {
22
22
node(nodeLabel) {
23
23
script {
24
- currentBuild. displayName = " #${ BUILD_NUMBER} ${ nodeLabel} ${ params.WM_OPERATIONAL_TESTS} "
24
+ currentBuild. displayName = " #${ BUILD_NUMBER} ${ nodeLabel.replaceAll("'","") } test= ${ params.WM_OPERATIONAL_TESTS} "
25
25
}
26
26
cleanWs()
27
27
checkout scm
@@ -35,13 +35,13 @@ def generateStage(nodeLabel) {
35
35
}
36
36
}
37
37
}
38
- stage(" Build on ${ nodeLabel} " ) {
38
+ stage(" Build on ${ nodeLabel.replaceAll("'","") } " ) {
39
39
if (params. WM_BUILD == true ) {
40
40
node(nodeLabel) {
41
41
script {
42
42
def UFS_PLATFORM = nodeLabel. replaceAll(" '" ," " )
43
- currentBuild. displayName = " #${ BUILD_NUMBER} ${ nodeLabel.replaceAll("'","")} ${ UFS_COMPILER} "
44
- currentBuild. description = " build ${ UFS_PLATFORM} / ${ UFS_COMPILER} "
43
+ // currentBuild.displayName = "#${BUILD_NUMBER} ${nodeLabel.replaceAll("'","")} ${UFS_COMPILER}"
44
+ currentBuild. description = " build ${ UFS_PLATFORM} - ${ UFS_COMPILER} "
45
45
46
46
echo " Building on ${ nodeLabel} "
47
47
sh ' bash --login "${WORKSPACE}/.cicd/scripts/wm_build.sh"'
@@ -54,7 +54,7 @@ def generateStage(nodeLabel) {
54
54
echo " Building on ${ nodeLabel} skipped"
55
55
}
56
56
}
57
- stage(" Test on ${ nodeLabel} " ) {
57
+ stage(" Test on ${ nodeLabel.replaceAll("'","") } " ) {
58
58
if (params. WM_OPERATIONAL_TESTS != ' none' ) {
59
59
node(nodeLabel) {
60
60
script {
@@ -68,8 +68,7 @@ def generateStage(nodeLabel) {
68
68
sh " WM_CREATE_BASELINE=false " + ' bash --login "${WORKSPACE}/.cicd/scripts/wm_test.sh"'
69
69
}
70
70
s3Upload consoleLogLevel : ' INFO' , dontSetBuildResultOnFailure : false , dontWaitForConcurrentBuildCompletion : false , entries : [[bucket : ' noaa-epic-prod-jenkins-artifacts' , excludedFile : ' ' , flatten : true , gzipFiles : false , keepForever : false , managedArtifacts : true , noUploadOnFailure : false , selectedRegion : ' us-east-1' , showDirectlyInBrowser : false , sourceFile : " **/*tgz*" , storageClass : ' STANDARD' , uploadFromSlave : false , useServerSideEncryption : false ]], pluginFailureResultConstraint : ' FAILURE' , profileName : ' main' , userMetadata : []
71
- 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} /wm_test_results-*-*.txt" , storageClass : ' STANDARD' , uploadFromSlave : false , useServerSideEncryption : false ]], pluginFailureResultConstraint : ' FAILURE' , profileName : ' main' , userMetadata : []
72
-
71
+ 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 : " tests/wm_test_results-*-*.txt" , storageClass : ' STANDARD' , uploadFromSlave : false , useServerSideEncryption : false ]], pluginFailureResultConstraint : ' FAILURE' , profileName : ' main' , userMetadata : []
73
72
}
74
73
catch (err) {
75
74
sh '''
@@ -92,16 +91,19 @@ def generateStage(nodeLabel) {
92
91
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} -*-time-wm_test.json" , storageClass : ' STANDARD' , uploadFromSlave : false , useServerSideEncryption : false ]], pluginFailureResultConstraint : ' FAILURE' , profileName : ' main' , userMetadata : []
93
92
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-usageTest.csv" , storageClass : ' STANDARD' , uploadFromSlave : false , useServerSideEncryption : false ]], pluginFailureResultConstraint : ' FAILURE' , profileName : ' main' , userMetadata : []
94
93
94
+ sh " [[ -d tests/logs ]] && cd tests/logs && tar --create --gzip --verbose --dereference --file ../../wm_test_logs-${ UFS_PLATFORM} -${ env.UFS_COMPILER} .tgz log_${ UFS_PLATFORM} /* RegressionTests_${ UFS_PLATFORM} .log || cat /dev/null > ../../wm_test_logs-${ UFS_PLATFORM} -${ env.UFS_COMPILER} .tgz"
95
+ 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 : " wm_test_logs-${ UFS_PLATFORM} -${ env.UFS_COMPILER} .tgz" , storageClass : ' STANDARD' , uploadFromSlave : false , useServerSideEncryption : false ]], pluginFailureResultConstraint : ' FAILURE' , profileName : ' main' , userMetadata : []
95
96
}
96
97
}
97
98
} else {
98
99
echo " Running Tests on ${ nodeLabel} skipped"
99
100
}
100
101
}
101
- stage(" Post from ${ nodeLabel} " ) {
102
+ stage(" Post from ${ nodeLabel.replaceAll("'","") } " ) {
102
103
if (params. WM_OPERATIONAL_TESTS != ' none' ) {
103
104
node(nodeLabel) {
104
105
script {
106
+ def UFS_PLATFORM = nodeLabel. replaceAll(" '" ," " )
105
107
try {
106
108
echo " Post Results from ${ nodeLabel} "
107
109
if (baselineLabels. contains(nodeLabel)) {
0 commit comments