Redirect gsutil log to file(s) to have cleaner Jenkins log 56/556/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 14 May 2015 14:08:31 +0000 (16:08 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 14 May 2015 14:08:31 +0000 (16:08 +0200)
JIRA: OCTO-47

Change-Id: Ifbf692ed3b000fe90a8bbe20d16e0f3054118c4b
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis-foreman.yml

index bd9b22c..faa4d47 100644 (file)
             /bin/cp -f $WORKSPACE/opnfv.properties $WORKSPACE/latest.properties
 
             # upload artifact and additional files to google storage
             /bin/cp -f $WORKSPACE/opnfv.properties $WORKSPACE/latest.properties
 
             # upload artifact and additional files to google storage
-            gsutil cp $BUILD_DIRECTORY/OPNFV-CentOS-7-x86_64-$OPNFV_ARTIFACT_VERSION.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso
-            gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties
-            gsutil cp $WORKSPACE/latest.properties gs://$GS_URL/latest.properties
+            gsutil cp $BUILD_DIRECTORY/OPNFV-CentOS-7-x86_64-$OPNFV_ARTIFACT_VERSION.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
+            gsutil cp $WORKSPACE/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
+            gsutil cp $WORKSPACE/latest.properties gs://$GS_URL/latest.properties gsutil.latest.log 2>&1
 
             echo
             echo "--------------------------------------------------------"
 
             echo
             echo "--------------------------------------------------------"