summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b5e9f2e)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6024
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
import re
from buildbot.steps.source import SVN
from buildbot.steps.shell import ShellCommand
import re
from buildbot.steps.source import SVN
from buildbot.steps.shell import ShellCommand
+from buildbot.steps.transfer import FileDownload
from buildbot.status import builder
from buildbot.status.builder import SUCCESS,FAILURE, EXCEPTION,WARNINGS
from buildbot.status import builder
from buildbot.status.builder import SUCCESS,FAILURE, EXCEPTION,WARNINGS
+from buildbot.process.properties import WithProperties
+
+
# Define a new builder status
# Configure return the exit code 77 when the target platform don't
# bear ucontext functionnality. In this case the CustomConfigure returns
# Define a new builder status
# Configure return the exit code 77 when the target platform don't
# bear ucontext functionnality. In this case the CustomConfigure returns
+"""
+Cleanup the build dir, and setup a SVN revision in the waterfall afterward
+"""
+class CleanupCommand(ShellCommand):
+ name="cleanup"
+ descriptionDone="cleanup"
+ command=["bash","-c","rm -rf * .svn"]
+ def maybeGetText2(self,cmd,results):
+ if self.build.getProperty("revision") == None:
+ return ["Missing svn revision"]
+ return ["SVN r%s" % self.build.getProperty("revision")]
+
"""
Just like a plain SVN, but displays the current revision in the waterfall afterall
"""
"""
Just like a plain SVN, but displays the current revision in the waterfall afterall
"""
lines = cmd.logs['stdio'].getText()
r = re.search(' (\d+).',lines)
if results == SUCCESS and r:
lines = cmd.logs['stdio'].getText()
r = re.search(' (\d+).',lines)
if results == SUCCESS and r:
- return ["SVN revision %s" % r.group(1)]
+ return ["SVN r%s" % r.group(1)]