Skip to content

Commit

Permalink
updated reference to gh tool in pipeline script in the FINALIZE section
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Aug 6, 2024
1 parent 8fee36f commit 857cb90
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 857cb90

Please sign in to comment.