summaryrefslogtreecommitdiffstats
path: root/utils/push-test-logs.sh
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-02-15 19:20:21 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2016-02-16 09:20:27 +0100
commiteb74d4bec5e068f40b09b33c60fd3b55501d5bff (patch)
tree728dc68335920df9137b5cb108189ab61a981c70 /utils/push-test-logs.sh
parentbcd9ceb95ae851218ea938f5138098a855615046 (diff)
Add hardcoded list of CI PODs to avoid pushing logs from non-CI PODs
Change-Id: I6070b215279960cf6cdbec08e5d36e3698c742b1 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'utils/push-test-logs.sh')
-rw-r--r--utils/push-test-logs.sh9
1 files changed, 9 insertions, 0 deletions
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