From eb74d4bec5e068f40b09b33c60fd3b55501d5bff Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Mon, 15 Feb 2016 19:20:21 +0100 Subject: Add hardcoded list of CI PODs to avoid pushing logs from non-CI PODs Change-Id: I6070b215279960cf6cdbec08e5d36e3698c742b1 Signed-off-by: jose.lausuch --- utils/push-test-logs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/push-test-logs.sh b/utils/push-test-logs.sh index 68f80874a..590397f84 100644 --- a/utils/push-test-logs.sh +++ b/utils/push-test-logs.sh @@ -18,6 +18,15 @@ project=$PROJECT branch=${GIT_BRANCH##*/} testbed=$NODE_NAME dir_result="${HOME}/opnfv/$project/results/$branch" +node_list=(\ +'opnfv-jump-1' 'opnfv-jump-2' 'ericsson-pod1' 'ericsson-pod2' \ +'intelpod2-jumphost' 'intel-pod3' 'intel-pod5' 'intel-pod6' \ +'intel-pod8' 'huawei-us-deploy-bare-1') + +if [[ ! " ${node_list[@]} " =~ " ${testbed} " ]]; then + echo "This is not a CI POD. Aborting pushing the logs to artifacts." + exit 0 +fi if [[ "$branch" == "master" ]]; then project_artifact=logs/$project/$testbed/$res_build_date -- cgit 1.2.3-korg