Skip to content

Commit

Permalink
Fix periodic bazel jobs.
Browse files Browse the repository at this point in the history
The bazel runner already specifies a --repo argument based off of
$REPO_NAME, so adding a second --repo option was checking out the
kubernetes repo, but making the test-infra repo primary, so it failed
the job because there was no "bazel-build" target in test-infra.
  • Loading branch information
pipejakob committed Apr 3, 2017
1 parent c5bee98 commit cf14d1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -823,14 +823,15 @@ periodics:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.9
args:
- "--repo=k8s.io/kubernetes=release-1.6"
- "--upload=gs://kubernetes-jenkins/logs"
- "--git-cache=/root/.cache/git"
- "--clean"
# Bazel needs privileged mode in order to sandbox builds.
securityContext:
privileged: true
env:
- name: REPO_NAME
value: kubernetes=release-1.6
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/service-account/service-account.json
volumeMounts:
Expand All @@ -852,13 +853,14 @@ periodics:
containers:
- image: gcr.io/k8s-testimages/bazelbuild:0.9
args:
- "--repo=k8s.io/kubernetes=release-1.6"
- "--upload=gs://kubernetes-jenkins/logs"
- "--git-cache=/root/.cache/git"
- "--clean"
securityContext:
privileged: true
env:
- name: REPO_NAME
value: kubernetes=release-1.6
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/service-account/service-account.json
volumeMounts:
Expand Down

0 comments on commit cf14d1d

Please sign in to comment.