Skip to content

Commit

Permalink
Bugfix for updating label states in Jenkins (#2808)
Browse files Browse the repository at this point in the history
Quick bug fix for updating state labels in CI during finalize.
(did not reference GitHub CLI executable correctly in the pipeline
script)
  • Loading branch information
TerrenceMcGuinness-NOAA committed Aug 6, 2024
1 parent 8fee36f commit 876dfee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ pipeline {
steps {
script {
sh(script: """
labels=\$(gh pr view ${env.CHANGE_ID} --repo ${repo_url} --json labels --jq '.labels[].name')
labels=\$(${GH} pr view ${env.CHANGE_ID} --repo ${repo_url} --json labels --jq '.labels[].name')
for label in \$labels; do
if [[ "\$label" == *"${Machine}"* ]]; then
gh pr edit ${env.CHANGE_ID} --repo ${repo_url} --remove-label "\$label"
${GH} pr edit ${env.CHANGE_ID} --repo ${repo_url} --remove-label "\$label"
fi
done
""", returnStatus: true)
Expand Down

0 comments on commit 876dfee

Please sign in to comment.