Skip to content

Commit a7426e0

Browse files
debug GIT vars
Signed-off-by: epic-cicd-jenkins <ecc.platform@noaa.gov>
1 parent 9fa5ba6 commit a7426e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.cicd/scripts/post_test_results.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function post_test() {
4242
echo "GIT_URL=${GIT_URL}"
4343
echo "CHANGE_ID=${CHANGE_ID}"
4444

45+
set -x
4546
git config user.email "ecc.platform@noaa.gov"
4647
git config user.name "epic-cicd-jenkins"
4748

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

60-
echo "Testing concluded...removing label ${label} for ${machine} from ${GIT_URL}"
6161
GIT_OWNER=$(echo ${GIT_URL} | cut -d '/' -f4)
6262
GIT_REPO_NAME=$(echo ${GIT_URL} | cut -d '/' -f5 | cut -d '.' -f1)
63+
set +x
64+
65+
echo "Testing concluded...removing label ${label} for ${machine} from ${GIT_URL}"
6366
echo "GIT_OWNER=${GIT_OWNER} GIT_REPO_NAME=${GIT_REPO_NAME}"
6467
echo "https://api.github.com/repos/${GIT_OWNER}/${GIT_REPO_NAME}/issues/${CHANGE_ID}/labels/${machine}-${label}"
6568
#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}
6669
}
6770

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

0 commit comments

Comments
 (0)