Skip to content

Commit

Permalink
print debugging for posting results to repo
Browse files Browse the repository at this point in the history
Signed-off-by: epic-cicd-jenkins <[email protected]>
  • Loading branch information
epic-cicd-jenkins committed Dec 11, 2024
1 parent fe9a128 commit 00e800b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .cicd/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 00e800b

Please sign in to comment.