Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Execute with:
- # ./refresh-jx-platform.sh
- # or pass the JX_VERSION
- # JX_VERSION=2.3.333 ./refresh-jx-platform.sh
- set -eu
- export JX_HOME=$(mktemp -d)
- if [ -z "${JX_VERSION:-}" ]; then
- export JX_VERSION=$(jx version --batch-mode --no-version-check | grep -i 'jenkins x platform' | cut -d' ' -f 4)
- fi
- [ -n "${JX_VERSION}" ] || { echo "No JX_VERSION found. Exiting..."; exit 1; }
- jx upgrade platform --batch-mode --verbose --always-upgrade --version ${JX_VERSION}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement