gitlab-ci: improved logging for trigger-issuebot

This commit is contained in:
Hans-Christoph Steiner 2020-12-10 16:15:50 +01:00
parent 6597064fbf
commit eff041ccfa
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ trigger-issuebot:
expire_in: 1 week
script:
- mkdir logs
- export | grep -F CI_ > logs/export.txt
- export | grep -F CI_ | grep -vFi -e password -e token > logs/export.txt
- apk add --no-cache bash curl
- ./tools/trigger-issuebot

View file

@ -45,5 +45,5 @@ curl --silent --request POST \
--form "variables[FROM_CI_PIPELINE_ID]=$CI_PIPELINE_ID" \
--form "variables[FROM_CI_PROJECT_PATH]=$CI_PROJECT_PATH" \
--form "variables[FROM_CI_PROJECT_URL]=$CI_PROJECT_URL" \
${CI_API_V4_URL}/projects/${project_id}/trigger/pipeline > /dev/null \
${CI_API_V4_URL}/projects/${project_id}/trigger/pipeline > logs/result.json \
|| echo "$0 failed to post to a merge request"