#2411: waterfall exception when using newer version of git source step with
gerrit
----------------------------+------------------------
Reporter: philippem | Owner:
Type: support-request | Status: new
Priority: major | Milestone: undecided
Version: 0.8.7p1 | Resolution:
Keywords: |
----------------------------+------------------------
Comment (by philippem):
I am using !WithProperties in multiple places in the config, for two
reasons. The first reason is to record the absolute path of the build dir.
The second reason is to set the description of the git update step, so
that I can see what gerrit patch is being built. Here is an excerpt that
adds steps to a factory. Note that this excerpt relies on the older git
step behaviour, but contains the newer versions commented out.
{{{
def AddINDMABuildSteps(factory, branch, config, dbname, auditdb=None,
runUnitTests=False, runFlexUnitTests=False, ru\
nSysupgrade=False, mode="update"):
CleanUpTemporaryFiles(factory)
desc = "update"
if mode == "update":
desc = WithProperties("gerrit patch <a
href=\"%(event.change.url:-http://192.168.14.83:8080/)s\">%(event.pat\
chSet.ref:-unknown ref)s</a> by %(event.uploader.username:-buildbot)s")
# factory.addStep(Git(repourl=repourl, mode="incremental",
progress=True, description=desc, descriptionDone=d\
esc))
else:
desc = WithProperties("update from
%(event.refUpdate.refName:-unknown ref)s")
# factory.addStep(Git(repourl=repourl, mode="full", method="clean",
progress=True, description=desc, descript\
ionDone=desc))
factory.addStep(Git(repourl=repourl, mode="update", progress=True,
description=desc, descriptionDone=desc))
factory.addStep(SetProperty(command=["python", "-c", "import os, sys;
print os.getcwd(); sys.exit(0)"], property\
='absBuildDir'))
INBuild(factory, branch, config, WithProperties("%(absBuildDir)s"),
"build\\INgrooves\\Scripts")
PatchConfigFiles(factory, branch, dbname, "build")
f_master_debug = factory.BuildFactory()
AddINDMABuildSteps(f_master_debug, 'master', 'Debug',
'INgroovesTrunkContinuous', 'INgroovesAuditTrunkContinuous', m\
ode="copy")
f_master_release = factory.BuildFactory()
AddINDMABuildSteps(f_master_release, 'master', 'Release',
'INgroovesTrunkContinuous', 'INgroovesAuditTrunkContinuous\
', mode="copy")
f_master_verify_debug = factory.BuildFactory()
AddINDMABuildSteps(f_master_verify_debug, 'master', 'Debug',
'INgroovesTrunkContinuous', 'INgroovesAuditTrunkContinu\
ous', mode="update")
}}}
--
Ticket URL: <http://trac.buildbot.net/ticket/2411#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits