Commit 9b3fd526 authored by I-Al-Istannen's avatar I-Al-Istannen
Browse files

Print "Test successful" for other branches too

parent 06507cf0
Pipeline #195386 failed with stage
in 27 minutes and 5 seconds
......@@ -42,6 +42,10 @@ MJ_EXIT_CODE="$?"
exec 3>&-
set +o pipefail
if [[ "$MJ_EXIT_CODE" == "0" ]]; then
echo "Test successful"
fi
if [[ "$USE_FLAMMENWEHRFER" != 1 ]] || [[ "$CI_COMMIT_BRANCH" != "master" ]]; then
echo "Flammenwehrfer disabled, checked for branch '$CI_COMMIT_BRANCH'"
echo -e "Output:\n$MJ_OUTPUT"
......@@ -69,7 +73,7 @@ echo "Found $ISSUE_COUNT Github issue(s)"
# |____/ \__,_|\___\___\___||___/___/
#
if [[ "$MJ_EXIT_CODE" == "0" ]]; then
echo "Test successful"
echo "Test still successful"
if [[ "$ISSUE_COUNT" > 0 ]] && [[ "$(echo "$FETCHED_ISSUES" | jq ".[0].state")" == '"open"' ]]; then
ISSUE_NUMBER="$(echo "$FETCHED_ISSUES" | jq ".[0].number")"
echo "Closing issue $ISSUE_NUMBER!"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment