fixes to curl commands

This commit is contained in:
Oliver Gorwits
2018-01-13 09:37:12 +00:00
parent 3918913b18
commit 97cdaf3ea7
4 changed files with 38 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
for url in $(echo $BUILD_TRIGGERS | sed "s/,/ /g"); do
curl -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"$SOURCE_BRANCH\" }" $url
curl -sL -X POST -H "Content-Type: application/json" --data "{ \"build\": true, \"source_name\": \"$SOURCE_BRANCH\" }" $url
done