diff --git a/testgrid/config-upload.sh b/testgrid/config-upload.sh index 1c8f84c149bf..d2784df74cef 100755 --- a/testgrid/config-upload.sh +++ b/testgrid/config-upload.sh @@ -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 \