Skip to content

Commit def74ad

Browse files
committed
another travis deploy jnlp fix
1 parent b13b4aa commit def74ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.travis.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ elif [ "${1}" == "deploy" ]; then
3434
if [ "${TRAVIS_TAG}" != "" ]; then
3535
export DEPLOY_JNLP_IMAGE="viderum/ckan-cloud-operator:jnlp-${TAG}"
3636
echo "Running Jenkins deploy jnlp job (JNLP_IMAGE=${DEPLOY_JNLP_IMAGE})"
37-
STATUS_CODE=$(curl -X POST "${JENKINS_JNLP_DEPLOY_URL}" --user "${JENKINS_USER}:${JENKINS_TOKEN}" \
38-
--data-urlencode json='{"parameter":[{"name":"JNLP_IMAGE","value":"'${DEPLOY_JNLP_IMAGE}'"}]}' -s -o /dev/stderr -w "%{http_code}")
37+
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}")
3938
echo "jenkins jnlp deploy job status code: ${STATUS_CODE}"
4039
[ "${STATUS_CODE}" != "200" ] && [ "${STATUS_CODE}" != "201" ] && echo Deploy failed && exit 1
4140
fi

0 commit comments

Comments
 (0)