Skip to content

Commit

Permalink
Update Jenkinsfile rm baseline logic
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoAndrade-NOAA authored Nov 22, 2024
1 parent 85100d7 commit a350aa9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
matchedNode = []
generateBaselineNode = []
for (label in pullRequest.labels) {
listOfLabelNodeNames = jenkins.model.Jenkins.instance.nodes.collect {
node -> node.getLabelString().contains(label) ? node.name : null

if ((label.matches(node.getLabelString()+"-(.*)"))) {
matchedNode += node.getLabelString()
}

if ((label.matches(node.getLabelString()+"(.*)-BL"))) {
generateBaselineNode += node.getLabelString()
}
}
}

modifiedLabels = matchedNode.collect{"'" + it + "'"}
baselineLabels = generateBaselineNode.collect{"'" + it + "'"}
def generateStage(nodeLabel) {
return {
stage("Running on ${nodeLabel}") {
Expand Down

0 comments on commit a350aa9

Please sign in to comment.