Skip to content

Commit

Permalink
Update testgrid config with Go instead of bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
chaodaiG committed Mar 9, 2022
1 parent e5eb557 commit 1a2bc2a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions testgrid/config-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ set -o errexit
set -o nounset
set -o pipefail

TESTINFRA_ROOT=$(git rev-parse --show-toplevel)
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
cd "${REPO_ROOT}"

for output in gs://k8s-testgrid-canary/configs/k8s/config gs://k8s-testgrid/configs/k8s/config; do
dir="$(dirname "${BASH_SOURCE}")"
(
set -o xtrace
bazel run //testgrid/cmd/configurator -- \
--yaml="${TESTINFRA_ROOT}/config/testgrids" \
--default="${TESTINFRA_ROOT}/config/testgrids/default.yaml" \
--prow-config="${TESTINFRA_ROOT}/config/prow/config.yaml" \
--prow-job-config="${TESTINFRA_ROOT}/config/jobs/" \
go run ./testgrid/cmd/configurator \
--yaml="${REPO_ROOT}/config/testgrids" \
--default="${REPO_ROOT}/config/testgrids/default.yaml" \
--prow-config="${REPO_ROOT}/config/prow/config.yaml" \
--prow-job-config="${REPO_ROOT}/config/jobs/" \
--output="${output}" \
--prowjob-url-prefix="https://git.k8s.io/test-infra/config/jobs/" \
--update-description \
Expand Down

0 comments on commit 1a2bc2a

Please sign in to comment.