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'