Add hardcoded list of CI PODs to avoid pushing logs from non-CI PODs 25/10025/2
authorjose.lausuch <jose.lausuch@ericsson.com>
Mon, 15 Feb 2016 18:20:21 +0000 (19:20 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Tue, 16 Feb 2016 08:20:27 +0000 (09:20 +0100)
Change-Id: I6070b215279960cf6cdbec08e5d36e3698c742b1
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
utils/push-test-logs.sh

index 68f8087..590397f 100644 (file)
@@ -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