[llvm-commits] [zorg] r118949 - /zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
Daniel Dunbar
daniel at zuster.org
Fri Nov 12 16:23:34 PST 2010
Author: ddunbar
Date: Fri Nov 12 18:23:34 2010
New Revision: 118949
URL: http://llvm.org/viewvc/llvm-project?rev=118949&view=rev
Log:
buildbot: Add support for packaging/upload of stage1 compilers.
Modified:
zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
Modified: zorg/trunk/zorg/buildbot/builders/ClangBuilder.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/ClangBuilder.py?rev=118949&r1=118948&r2=118949&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/ClangBuilder.py (original)
+++ zorg/trunk/zorg/buildbot/builders/ClangBuilder.py Fri Nov 12 18:23:34 2010
@@ -164,6 +164,27 @@
workdir=llvm_1_objdir))
if not useTwoStage:
+ if package_dst:
+ name = WithProperties(
+ "%(builddir)s/" + llvm_1_objdir +
+ "/clang-r%(got_revision)s-b%(buildnumber)s.tgz")
+ f.addStep(ShellCommand(name='pkg.tar',
+ description="tar root",
+ command=["tar", "zcvf", name, "./"],
+ workdir=llvm_1_installdir,
+ warnOnFailure=True,
+ flunkOnFailure=False,
+ haltOnFailure=False))
+ f.addStep(ShellCommand(name='pkg.upload',
+ description="upload root",
+ command=["scp", name,
+ WithProperties(
+ package_dst + "/%(buildername)s")],
+ workdir=".",
+ warnOnFailure=True,
+ flunkOnFailure=False,
+ haltOnFailure=False))
+
return f
# Clean up llvm (stage 2).
More information about the llvm-commits
mailing list