bug fix: ls only the root directory through gsutils 97/9497/3
authorMorgan Richomme <morgan.richomme@orange.com>
Mon, 8 Feb 2016 09:35:20 +0000 (10:35 +0100)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 8 Feb 2016 14:13:31 +0000 (14:13 +0000)
Change-Id: Ieaa2ce5e3882e6424b920d226721ff539fdc2dd6
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
utils/push-test-logs.sh

index 331cbd9..68f8087 100644 (file)
@@ -36,9 +36,9 @@ if [ -d "$dir_result" ]; then
         if [ $? != 0 ]; then
             echo "Not possible to push results to artifact: gsutil not installed";
         else
-            gsutil ls gs://artifacts.opnfv.org/"$project_artifact"/ &>/dev/null
+            gsutil ls gs://artifacts.opnfv.org/"$project"/ &>/dev/null
             if [ $? != 0 ]; then
-                echo "Not possible to push results to artifact: wrong credentials.";
+                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"/