Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Execute with:
  4. # ./refresh-jx-platform.sh
  5. # or pass the JX_VERSION
  6. # JX_VERSION=2.3.333 ./refresh-jx-platform.sh
  7.  
  8. set -eu
  9. export JX_HOME=$(mktemp -d)
  10. if [ -z "${JX_VERSION:-}" ]; then
  11. export JX_VERSION=$(jx version --batch-mode --no-version-check | grep -i 'jenkins x platform' | cut -d' ' -f 4)
  12. fi
  13. [ -n "${JX_VERSION}" ] || { echo "No JX_VERSION found. Exiting..."; exit 1; }
  14. jx upgrade platform --batch-mode --verbose --always-upgrade --version ${JX_VERSION}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement