Bug 1194741 - Display upload output; r=nalexander
authorMike Shal <mshal@mozilla.com>
Fri, 14 Aug 2015 13:28:54 -0400
changeset 257928 04ad18f8377c88e88e37db4729b07cac783553df
parent 257927 7465a399094d44bbcc1f207d302805a4e638ba47
child 257929 844bfdb58072f4a376e3af87c111a5fd6d377724
push id17020
push userryanvm@gmail.com
push dateMon, 17 Aug 2015 13:09:31 +0000
treeherderb2g-inbound@1f4f80d459ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1194741
milestone43.0a1
Bug 1194741 - Display upload output; r=nalexander
build/upload.py
--- a/build/upload.py
+++ b/build/upload.py
@@ -186,16 +186,18 @@ def UploadFiles(user, host, path, files,
                 print "Uploading " + file
             DoSCPFile(file, remote_path, user, host, port=port, ssh_key=ssh_key)
             remote_files.append(remote_path + '/' + os.path.basename(file))
         if post_upload_command is not None:
             if verbose:
                 print "Running post-upload command: " + post_upload_command
             file_list = '"' + '" "'.join(remote_files) + '"'
             output = DoSSHCommand('%s "%s" %s' % (post_upload_command, path, file_list), user, host, port=port, ssh_key=ssh_key)
+            # We print since mozharness may parse URLs from the output stream.
+            print output
             if properties_file:
                 with open(properties_file, 'w') as outfile:
                     properties = GetUrlProperties(output, package)
                     properties['packageFilename'] = package
                     properties['uploadFiles'] = [os.path.abspath(f) for f in files]
                     json.dump(properties, outfile, indent=4)
     finally:
         if upload_to_temp_dir: