diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-09-02 10:38:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-02 10:38:41 +0000 |
commit | 2e261664b3b723061992be56eab7b506310f9ec5 (patch) | |
tree | a88afd0cec4a2d1c3be0039300a51b78ba808267 | |
parent | 837770f26760031d28d10c3e9095cb46fa8c3d1c (diff) | |
parent | 68d1088c71e07b78382a7918df954f07e398c449 (diff) |
Merge "Generate and print link of the log files pushed to artifacts"
-rw-r--r-- | utils/push-test-logs.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/push-test-logs.sh b/utils/push-test-logs.sh index 24b3281e8..5bf94616a 100644 --- a/utils/push-test-logs.sh +++ b/utils/push-test-logs.sh @@ -54,8 +54,14 @@ if [ -d "$dir_result" ]; then if [ $? != 0 ]; then echo "Not possible to push results to artifact: gsutil not installed."; else - echo "copy result files to artifact $project_artifact" - gsutil -m cp -r "$dir_result" gs://artifacts.opnfv.org/"$project_artifact"/ >/dev/null 2>&1 + echo "Uploading logs to artifact $project_artifact" + gsutil -m cp -r "$dir_result"/* gs://artifacts.opnfv.org/"$project_artifact"/ >/dev/null 2>&1 + echo "Logs can be found in http://artifacts.opnfv.org/logs_"$project"_"$testbed".html" + cd $dir_result + files=($(find . -name \* -print|sed 's/^\.//'|sed '/^\s*$/d')) + for f in ${files[@]}; do + echo "http://artifacts.opnfv.org/"$project_artifact"/"$f + done fi fi else |