Skip to content
Snippets Groups Projects
Verified Commit a804abd5 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: gitlab pipeline

parent 522e2a9c
No related branches found
No related tags found
No related merge requests found
......@@ -36,13 +36,26 @@ in
set -x
if [ "$(echo $publishingResult | jq .id)" == null ] ; then
echo_fail "Failed to publish the project."
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{icon_emoji: ":x:", text: ("Failed to publish: " + $name + " " + $version)}')
${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \
--data '{"text":"Failed to publish: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}' $MATTERMOST_WEBHOOK
--data "$json" $MATTERMOST_WEBHOOK
exit 1
fi
json=$(jq -n \
--arg name "$(echo $publishingResult | jq -r .name)" \
--arg version "$(echo $publishingResult | jq -r .version)" \
'{icon_emoji: ":monster:", text: ("Deployed: " + $name + " " + $version)}')
${pkgs'.curl}/bin/curl --header "Content-Type: application/json" --request POST \
--data '{"text":"Deployed: '$(echo $publishingResult | jq .name)' '$(echo $publishingResult | jq .version)'"}' $MATTERMOST_WEBHOOK
--data "$json" $MATTERMOST_WEBHOOK
echo_ok "Build and publish successful."
''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment