Skip to content

Commit

Permalink
another travis deploy jnlp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Apr 22, 2019
1 parent b13b4aa commit def74ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ elif [ "${1}" == "deploy" ]; then
if [ "${TRAVIS_TAG}" != "" ]; then
export DEPLOY_JNLP_IMAGE="viderum/ckan-cloud-operator:jnlp-${TAG}"
echo "Running Jenkins deploy jnlp job (JNLP_IMAGE=${DEPLOY_JNLP_IMAGE})"
STATUS_CODE=$(curl -X POST "${JENKINS_JNLP_DEPLOY_URL}" --user "${JENKINS_USER}:${JENKINS_TOKEN}" \
--data-urlencode json='{"parameter":[{"name":"JNLP_IMAGE","value":"'${DEPLOY_JNLP_IMAGE}'"}]}' -s -o /dev/stderr -w "%{http_code}")
STATUS_CODE=$(curl -X POST "${JENKINS_JNLP_DEPLOY_URL}" --user "${JENKINS_USER}:${JENKINS_TOKEN}" --data "JNLP_IMAGE=${DEPLOY_JNLP_IMAGE}" -s -o /dev/stderr -w "%{http_code}")
echo "jenkins jnlp deploy job status code: ${STATUS_CODE}"
[ "${STATUS_CODE}" != "200" ] && [ "${STATUS_CODE}" != "201" ] && echo Deploy failed && exit 1
fi
Expand Down

0 comments on commit def74ad

Please sign in to comment.