[zorg] r284772 - [GreenDragon] modify build.py to create destination directory prior to uploading artifacts
Mike Edwards via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 13:14:08 PDT 2016
Author: sqlbyme
Date: Thu Oct 20 15:14:08 2016
New Revision: 284772
URL: http://llvm.org/viewvc/llvm-project?rev=284772&view=rev
Log:
[GreenDragon] modify build.py to create destination directory prior to uploading artifacts
The build.py script needs to ensure the destination directory exists prior to attempting to scp the build artifact
tarball to the local server.
Modified:
zorg/trunk/zorg/jenkins/build.py
Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=284772&r1=284771&r2=284772&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Thu Oct 20 15:14:08 2016
@@ -785,6 +785,10 @@ def build_upload_artifact():
run_cmd(conf.installdir(), tar)
+ mkdir_cmd = ["ssh", "buildslave@" + SERVER, "mkdir", "-p", "/Library/WebServer/Documents/artifacts/" + conf.job_name]
+
+ run_cmd(conf.workspace, mkdir_cmd)
+
upload_cmd = ["scp", artifact_name,
"buildslave@" + SERVER + ":/Library/WebServer/Documents/artifacts/" +
conf.job_name + "/"]
More information about the llvm-commits
mailing list