Skip to content

Commit

Permalink
Change push-ci-build.sh to push-build.sh and some cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcmahon committed Sep 7, 2016
1 parent f61a677 commit 92ddc22
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions hack/jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,7 @@ export CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK=true
# FEDERATION?
: ${FEDERATION:="false"}
: ${KUBE_RELEASE_RUN_TESTS:="n"}

# New kubernetes/release/push-ci-build.sh values
# RELEASE_INFRA_PUSH=true when we're using kubernetes/release/push-ci-build.sh
: ${RELEASE_INFRA_PUSH:="false"}
# SET_NOMOCK_FLAG=true means we're doing full pushes and we pass --nomock to
# push-ci-build.sh. This is set to false in the
# testing jobs and only used in the RELEASE_INFRA_PUSH=true scope below.
: ${SET_NOMOCK_FLAG:="true"}
export KUBE_RELEASE_RUN_TESTS RELEASE_INFRA_PUSH FEDERATION SET_NOMOCK_FLAG
export KUBE_RELEASE_RUN_TESTS

# Clean stuff out. Assume the last build left the tree in an odd
# state.
Expand All @@ -72,19 +64,19 @@ else
mkdir -p ${WORKSPACE}/_tmp
git clone https://github.com/kubernetes/release ${release_infra_clone}

if [[ ! -x ${release_infra_clone}/push-ci-build.sh ]]; then
echo "FATAL: Something went wrong." \
"${release_infra_clone}/push-ci-build.sh isn't available." \
"Exiting..." >&2
exit 1
fi
push_build=${release_infra_clone}/push-build.sh

if [[ ! -x ${push_build} ]]; then
# TODO: Remove/Restore this with the full deprecation PR
push_build=${release_infra_clone}/push-ci-build.sh
#echo "FATAL: Something went wrong. ${push_build} isn't available." \
# "Exiting..." >&2
#exit 1
fi
[[ -n "${KUBE_GCS_RELEASE_BUCKET-}" ]] \
&& bucket_flag="--bucket=${KUBE_GCS_RELEASE_BUCKET-}"
${FEDERATION} && federation_flag="--federation"
${SET_NOMOCK_FLAG} && mock_flag="--nomock"
${release_infra_clone}/push-ci-build.sh ${bucket_flag-} ${federation_flag-} \
${mock_flag-} --verbose
${push_build} ${bucket_flag-} ${federation_flag-} --nomock --verbose --ci
fi

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

0 comments on commit 92ddc22

Please sign in to comment.