Skip to content

Commit

Permalink
Merge pull request #35458 from ixdy/automated-cherry-pick-of-#28922-#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ixdy authored Oct 25, 2016
2 parents 22b167b + 0b644ee commit 9e735dd
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions hack/jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export KUBE_SKIP_CONFIRMATIONS=y
# Skip gcloud update checking
export CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK=true

# FEDERATION?
: ${FEDERATION:="false"}
: ${KUBE_RELEASE_RUN_TESTS:="n"}
export KUBE_RELEASE_RUN_TESTS

Expand All @@ -54,9 +56,23 @@ git clean -fdx
# Build
go run ./hack/e2e.go -v --build

[[ ${KUBE_SKIP_PUSH_GCS:-} =~ ^[yY]$ ]] || {
# Push to GCS
./build/push-ci-build.sh
}
# Push to GCS?
if [[ ${KUBE_SKIP_PUSH_GCS:-} =~ ^[yY]$ ]]; then
echo "Not pushed to GCS..."
else
readonly release_infra_clone="${WORKSPACE}/_tmp/release.git"
mkdir -p ${WORKSPACE}/_tmp
git clone https://github.com/kubernetes/release ${release_infra_clone}

push_build=${release_infra_clone}/push-build.sh

[[ -n "${KUBE_GCS_RELEASE_BUCKET-}" ]] \
&& bucket_flag="--bucket=${KUBE_GCS_RELEASE_BUCKET-}"
${FEDERATION} && federation_flag="--federation"
[[ -n "${KUBE_GCS_RELEASE_SUFFIX-}" ]] \
&& gcs_suffix_flag="--gcs-suffix=${KUBE_GCS_RELEASE_SUFFIX-}"
${push_build} ${bucket_flag-} ${federation_flag-} ${gcs_suffix_flag-} \
--nomock --verbose --ci
fi

sha256sum _output/release-tars/kubernetes*.tar.gz

0 comments on commit 9e735dd

Please sign in to comment.