summaryrefslogtreecommitdiff
path: root/playbooks/roles/src/templates/volumes/soft-serve/hooks/update
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/src/templates/volumes/soft-serve/hooks/update')
-rwxr-xr-xplaybooks/roles/src/templates/volumes/soft-serve/hooks/update17
1 files changed, 9 insertions, 8 deletions
diff --git a/playbooks/roles/src/templates/volumes/soft-serve/hooks/update b/playbooks/roles/src/templates/volumes/soft-serve/hooks/update
index a97e5f9..c209b41 100755
--- a/playbooks/roles/src/templates/volumes/soft-serve/hooks/update
+++ b/playbooks/roles/src/templates/volumes/soft-serve/hooks/update
@@ -41,22 +41,23 @@ refname="$1"
_oldrev="$2"
rev="$3"
-function post_trigger_ci_jobs() {
- local host="cihooks"
+post_trigger_ci_jobs() {
+ local host="ci_server"
local port="9000"
local path="/job"
local json_payload=$(printf '{"type": "ci_pipeline", "arguments": {"remote": "%s", "rev": "%s", "refname": "%s"}}' "$1" "$2" "$3")
-
+
echo "> $json_payload"
-
- which curl 2&>/dev/null || apk add -q curl
- curl --silent --show-error -X POST \
- -H "Content-Type: application/json" \ -H "Connection: close" \
+ which curl 2&>/dev/null || apk add -q curl
+ curl -X POST \
+ -H "Content-Type: application/json" \
+ -H "Connection: close" \
-d "$json_payload" \
+ --no-progress-meter \
"http://$host:$port$path"
- echo "... Done!"
+ echo "... Done"
}
# -- </continuous_integration> --