Skip to content

Commit

Permalink
debug GIT vars
Browse files Browse the repository at this point in the history
Signed-off-by: epic-cicd-jenkins <ecc.platform@noaa.gov>
  • Loading branch information
epic-cicd-jenkins committed Dec 11, 2024
1 parent 9fa5ba6 commit a7426e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .cicd/scripts/post_test_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function post_test() {
echo "GIT_URL=${GIT_URL}"
echo "CHANGE_ID=${CHANGE_ID}"

set -x
git config user.email "ecc.platform@noaa.gov"
git config user.name "epic-cicd-jenkins"

Expand All @@ -57,14 +58,17 @@ function post_test() {
git status
#git push sshorigin HEAD:${FORK_BRANCH}

echo "Testing concluded...removing label ${label} 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 label ${label} for ${machine} from ${GIT_URL}"
echo "GIT_OWNER=${GIT_OWNER} GIT_REPO_NAME=${GIT_REPO_NAME}"
echo "https://api.github.com/repos/${GIT_OWNER}/${GIT_REPO_NAME}/issues/${CHANGE_ID}/labels/${machine}-${label}"
#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}-${label}
}

pwd
post_test "${machine}" "${label}"
tar --create --gzip --verbose --dereference --file "${machine,,}.tgz" tests/logs/*.log
set +x
post_test "${machine}" "${label}"

0 comments on commit a7426e0

Please sign in to comment.