Skip to content

Commit d7d170a

Browse files
committed
cause script to fail if curl fails
1 parent 0ce1e5e commit d7d170a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/ci-resources/delete-remote-tmp-xar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ set -e
88
# REMOTE_EDB_SERVER_PASSWORD - password for authenticating to the remote database server
99
# REMOTE_EDB_SERVER_URL - URL of a remote database server to upload the XAR file into
1010

11-
curl --request DELETE --basic --user "${REMOTE_EDB_SERVER_USERNAME}:${REMOTE_EDB_SERVER_PASSWORD}" "${REMOTE_EDB_SERVER_URL}/rest${db-tmp-collection}/${package-final-name}.xar"
11+
curl --request DELETE --basic --user "${REMOTE_EDB_SERVER_USERNAME}:${REMOTE_EDB_SERVER_PASSWORD}" --fail-with-body "${REMOTE_EDB_SERVER_URL}/rest${db-tmp-collection}/${package-final-name}.xar"

src/main/ci-resources/redeploy-xar-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ POST_BODY=`cat << EOF
2222
EOF
2323
`
2424

25-
echo "${POST_BODY}" | curl --request POST --basic --user "${REMOTE_EDB_SERVER_USERNAME}:${REMOTE_EDB_SERVER_PASSWORD}" --header "Content-Type: application/xml" --data-binary @- "${REMOTE_EDB_SERVER_URL}/rest${db-tmp-collection}"
25+
echo "${POST_BODY}" | curl --request POST --basic --user "${REMOTE_EDB_SERVER_USERNAME}:${REMOTE_EDB_SERVER_PASSWORD}" --header "Content-Type: application/xml" --data-binary @- --fail-with-body "${REMOTE_EDB_SERVER_URL}/rest${db-tmp-collection}"

src/main/ci-resources/upload-remote-tmp-xar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ else
1515
XAR_PATH=$1
1616
fi
1717

18-
curl --request PUT --basic --user "${REMOTE_EDB_SERVER_USERNAME}:${REMOTE_EDB_SERVER_PASSWORD}" --header 'Content-Type: application/expath+xar' --data-binary "@${XAR_PATH}" "${REMOTE_EDB_SERVER_URL}/rest${db-tmp-collection}/${package-final-name}.xar"
18+
curl --request PUT --basic --user "${REMOTE_EDB_SERVER_USERNAME}:${REMOTE_EDB_SERVER_PASSWORD}" --header 'Content-Type: application/expath+xar' --data-binary "@${XAR_PATH}" --fail-with-body "${REMOTE_EDB_SERVER_URL}/rest${db-tmp-collection}/${package-final-name}.xar"

0 commit comments

Comments
 (0)