From 00e800baf8062eb6457c79533fe60f6c41cc66c7 Mon Sep 17 00:00:00 2001 From: epic-cicd-jenkins Date: Wed, 11 Dec 2024 17:59:07 -0600 Subject: [PATCH] print debugging for posting results to repo Signed-off-by: epic-cicd-jenkins --- .cicd/Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.cicd/Jenkinsfile b/.cicd/Jenkinsfile index 563cad9d07..a606e96b29 100644 --- a/.cicd/Jenkinsfile +++ b/.cicd/Jenkinsfile @@ -73,9 +73,12 @@ def generateStage(nodeLabel) { sh ''' export machine=${NODE_NAME} export CHANGE_ID=${CHANGE_ID} - echo "Testing concluded...removing labels for $machine from $GIT_URL" GIT_OWNER=$(echo $GIT_URL | cut -d '/' -f4) GIT_REPO_NAME=$(echo $GIT_URL | cut -d '/' -f5 | cut -d '.' -f1) + set +x + + echo "Testing concluded...removing labels for $machine from $GIT_URL" + echo "https://api.github.com/repos/${GIT_OWNER}/${GIT_REPO_NAME}/issues/${CHANGE_ID}/labels /{$machine-RT,$machine-BL}" #curl --silent -X DELETE -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${GITHUB_TOKEN}" https://api.github.com/repos/${GIT_OWNER}/${GIT_REPO_NAME}/issues/${CHANGE_ID}/labels/{$machine-RT,$machine-BL} ''' currentBuild.result = 'FAILURE'