Skip to content

Commit

Permalink
Merge pull request #2739 from rmmh/fix-batch
Browse files Browse the repository at this point in the history
Fix pull-kubernetes-bazel on batch jobs.
  • Loading branch information
Ryan Hitchman authored May 12, 2017
2 parents c3d49a6 + 398e825 commit ea00ea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs/pull-kubernetes-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ if [[ "${rc}" == 0 ]]; then
fi

if [[ "${rc}" == 0 ]]; then
if [[ -z "${PULL_NUMBER:-}" || -z "${PULL_REFS:-}" ]]; then
echo "\$PULL_NUMBER or \$PULL_REFS is empty; not uploading ci artifacts."
if [[ -z "${PULL_REFS:-}" ]]; then
echo "\$PULL_REFS is empty; not uploading ci artifacts."
rc=1
else
version=${PULL_NUMBER:-}/${PULL_REFS:-}
version="${PULL_NUMBER:-batch}/${PULL_REFS:-}"
bazel run //:ci-artifacts -- "gs://kubernetes-release-dev/bazel/${version}" && rc=$? || rc=$?
fi
fi
Expand Down

0 comments on commit ea00ea7

Please sign in to comment.