diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-02-16 15:38:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-02-16 15:38:54 +0000 |
commit | 2c249637b266192c0375062b3af2a163cf434965 (patch) | |
tree | 341ac0e63826383d47cd08f120b52857591b6c6c /utils/push-test-logs.sh | |
parent | 0ebf8ae3394834969f9980547853ea620da30c55 (diff) | |
parent | eb74d4bec5e068f40b09b33c60fd3b55501d5bff (diff) |
Merge "Add hardcoded list of CI PODs to avoid pushing logs from non-CI PODs"
Diffstat (limited to 'utils/push-test-logs.sh')
-rw-r--r-- | utils/push-test-logs.sh | 9 |
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 |