Skip to content

Commit 1a2bc2a

Browse files
committed
Update testgrid config with Go instead of bazel
1 parent e5eb557 commit 1a2bc2a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

testgrid/config-upload.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ set -o errexit
1717
set -o nounset
1818
set -o pipefail
1919

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

2223
for output in gs://k8s-testgrid-canary/configs/k8s/config gs://k8s-testgrid/configs/k8s/config; do
23-
dir="$(dirname "${BASH_SOURCE}")"
2424
(
2525
set -o xtrace
26-
bazel run //testgrid/cmd/configurator -- \
27-
--yaml="${TESTINFRA_ROOT}/config/testgrids" \
28-
--default="${TESTINFRA_ROOT}/config/testgrids/default.yaml" \
29-
--prow-config="${TESTINFRA_ROOT}/config/prow/config.yaml" \
30-
--prow-job-config="${TESTINFRA_ROOT}/config/jobs/" \
26+
go run ./testgrid/cmd/configurator \
27+
--yaml="${REPO_ROOT}/config/testgrids" \
28+
--default="${REPO_ROOT}/config/testgrids/default.yaml" \
29+
--prow-config="${REPO_ROOT}/config/prow/config.yaml" \
30+
--prow-job-config="${REPO_ROOT}/config/jobs/" \
3131
--output="${output}" \
3232
--prowjob-url-prefix="https://git.k8s.io/test-infra/config/jobs/" \
3333
--update-description \

0 commit comments

Comments
 (0)