Skip to content

Commit ec985b7

Browse files
fredrectensorflower-gardener
authored andcommitted
Allow to specify the Git repo location as an environment variable in CI scripts
PiperOrigin-RevId: 416728905
1 parent a4d20bf commit ec985b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/kokoro/gcp_ubuntu/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ set -o pipefail # Treat the failure of a command in a pipeline as error.
3333
# set -x
3434

3535
# The TFMOT Git repository is checked out here.
36-
GIT_REPO_DIR="${KOKORO_ARTIFACTS_DIR}/github/tensorflow_model_optimization"
36+
DEFAULT_REPO_DIR="${KOKORO_ARTIFACTS_DIR}/github/tensorflow_model_optimization"
37+
GIT_REPO_DIR="${GIT_REPO_DIR:-$DEFAULT_REPO_DIR}"
3738

3839

3940
cleanup() {

0 commit comments

Comments
 (0)