From 857cb900ef990591540ee4dc77497fbdbd1646aa Mon Sep 17 00:00:00 2001 From: Terry McGuinness Date: Tue, 6 Aug 2024 11:14:21 -0400 Subject: [PATCH] updated reference to gh tool in pipeline script in the FINALIZE section --- ci/Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 05d38b7898..ae86e33c66 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -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)