Skip to content

Commit

Permalink
Update bazel image to use multirepo-compatible bootstrap args
Browse files Browse the repository at this point in the history
Additionally:
* Add coalesce.py to the bazelbuild image
* Update test-infra jobs to use new bazelbuild image
  • Loading branch information
ixdy committed May 11, 2017
1 parent 5dadf0c commit c152e84
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion images/pull_kubernetes_bazel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ RUN wget https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x6
npm install -g mocha

WORKDIR /workspace
ADD runner /
COPY runner coalesce.py /
ENTRYPOINT ["/bin/bash", "/runner"]
2 changes: 1 addition & 1 deletion images/pull_kubernetes_bazel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = 0.11
VERSION = 0.12

image:
docker build -t "gcr.io/k8s-testimages/bazelbuild:$(VERSION)" .
Expand Down
2 changes: 1 addition & 1 deletion images/pull_kubernetes_bazel/runner
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -o pipefail

git clone https://github.com/kubernetes/test-infra
./test-infra/jenkins/bootstrap.py \
--repo="k8s.io/${REPO_NAME:-test-infra}" \
--repo="k8s.io/${REPO_NAME}=${PULL_REFS:-master}" \
--job=${JOB_NAME} \
--service-account=${GOOGLE_APPLICATION_CREDENTIALS} \
"$@"
2 changes: 1 addition & 1 deletion jobs/ci-test-infra-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ case "${rc}" in
*) echo "Unknown exit code: ${rc}" ;;
esac

./images/pull_kubernetes_bazel/coalesce.py
/coalesce.py

exit "${rc}"
2 changes: 1 addition & 1 deletion jobs/pull-test-infra-bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ case "${rc}" in
*) echo "Unknown exit code: ${rc}" ;;
esac

./images/pull_kubernetes_bazel/coalesce.py
/coalesce.py

exit "${rc}"
9 changes: 3 additions & 6 deletions prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,8 @@ presubmits:
trigger: "@k8s-bot (bazel )?test this"
spec:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.11
- image: gcr.io/k8s-testimages/bazelbuild:0.12
args:
- "--pull=$(PULL_REFS)"
- "--upload=gs://kubernetes-jenkins/pr-logs"
- "--git-cache=/root/.cache/git"
- "--clean"
Expand Down Expand Up @@ -665,9 +664,8 @@ postsubmits:
- master
spec:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.11
- image: gcr.io/k8s-testimages/bazelbuild:0.12
args:
- "--branch=$(PULL_REFS)"
- "--upload=gs://kubernetes-jenkins/logs"
- "--git-cache=/root/.cache/git"
- "--clean"
Expand Down Expand Up @@ -735,9 +733,8 @@ periodics:
interval: 1h
spec:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.11
- image: gcr.io/k8s-testimages/bazelbuild:0.12
args:
- "--branch=master"
- "--upload=gs://kubernetes-jenkins/logs"
- "--git-cache=/root/.cache/git"
- "--clean"
Expand Down

0 comments on commit c152e84

Please sign in to comment.