Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit edc28d4

Browse files
david-mcmahonixdy
authored andcommitted
Change push-ci-build.sh to push-build.sh and some cleanup.
1 parent 80041c5 commit edc28d4

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

hack/jenkins/build.sh

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@ export CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK=true
3939
# FEDERATION?
4040
: ${FEDERATION:="false"}
4141
: ${KUBE_RELEASE_RUN_TESTS:="n"}
42-
43-
# New kubernetes/release/push-ci-build.sh values
44-
# RELEASE_INFRA_PUSH=true when we're using kubernetes/release/push-ci-build.sh
45-
: ${RELEASE_INFRA_PUSH:="false"}
46-
# SET_NOMOCK_FLAG=true means we're doing full pushes and we pass --nomock to
47-
# push-ci-build.sh. This is set to false in the
48-
# testing jobs and only used in the RELEASE_INFRA_PUSH=true scope below.
49-
: ${SET_NOMOCK_FLAG:="true"}
50-
export KUBE_RELEASE_RUN_TESTS RELEASE_INFRA_PUSH FEDERATION SET_NOMOCK_FLAG
42+
export KUBE_RELEASE_RUN_TESTS
5143

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

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

69+
if [[ ! -x ${push_build} ]]; then
70+
# TODO: Remove/Restore this with the full deprecation PR
71+
push_build=${release_infra_clone}/push-ci-build.sh
72+
#echo "FATAL: Something went wrong. ${push_build} isn't available." \
73+
# "Exiting..." >&2
74+
#exit 1
75+
fi
8276
[[ -n "${KUBE_GCS_RELEASE_BUCKET-}" ]] \
8377
&& bucket_flag="--bucket=${KUBE_GCS_RELEASE_BUCKET-}"
8478
${FEDERATION} && federation_flag="--federation"
85-
${SET_NOMOCK_FLAG} && mock_flag="--nomock"
86-
${release_infra_clone}/push-ci-build.sh ${bucket_flag-} ${federation_flag-} \
87-
${mock_flag-} --verbose
79+
${push_build} ${bucket_flag-} ${federation_flag-} --nomock --verbose --ci
8880
fi
8981

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

0 commit comments

Comments
 (0)