Fix CI unable to start test due to the same travis build ID (#1246)

This commit is contained in:
Ta-Ching Chen
2019-07-25 15:54:12 +08:00
committed by GitHub
parent dc0fc839ed
commit 655a76447e
+1 -1
View File
@@ -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