Skip to content

Commit

Permalink
Get version from started.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcmahon committed Aug 10, 2016
1 parent 072798b commit c99a18e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/jenkins/upload-to-gcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function find_version() {
source "hack/lib/version.sh"
kube::version::get_version_vars
echo "${KUBE_GIT_VERSION-}"
else
# Last resort from the started.json
gsutil cat ${gcs_build_path}/started.json 2>/dev/null |\
sed -n 's/ *"version": *"\([^"]*\)",*/\1/p'
fi
)
}
Expand Down

0 comments on commit c99a18e

Please sign in to comment.