From 655a76447ef0d302607a8380c882aa414f011104 Mon Sep 17 00:00:00 2001 From: Ta-Ching Chen Date: Thu, 25 Jul 2019 15:54:12 +0800 Subject: [PATCH] Fix CI unable to start test due to the same travis build ID (#1246) --- test/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.sh b/test/test.sh index 0360a933..e911a299 100755 --- a/test/test.sh +++ b/test/test.sh @@ -34,7 +34,7 @@ while true; do # If previous build state is not equal to "started" or the previous build id # equals to the current build ID means the previous build is end or restart. # We can remove the configmap safely and start next k8s test safely. - if [[ ${TRAVIS_TOKEN} == ${previous_build_id} ]] || [[ $build_state != "started" ]]; then + if [[ ${TRAVIS_BUILD_ID} == ${previous_build_id} ]] || [[ $build_state != "started" ]]; then kubectl --namespace default delete configmap -l travisID=${previous_build_id} fi fi