[Buildbot-devel] Still have problems with schedulers passing wrong branches

Bailey, Darragh dbailey at hp.com
Tue Aug 25 10:35:26 UTC 2009



Still running into a problem with a build triggered by another build using the wrong branch.

What I was running (shortened):
buildA.addStep( SVN(baseURL=svnurl, defaultBranch="trunk",...) )
buildB.addStep( SVN(baseURL=svnurl, defaultBranch="trunk",...) )
buildC.addStep( SVN(baseURL=svnurl, defaultBranch="branches/branchC",...) )

BuildB.addStep(Trigger(schedulerNames("RunBuildA")))
BuildC.addStep(Trigger(schedulerNames("RunBuildA")))

c['schedulers'].append(Triggerable(name="RunBuildA",...))
c['schedulers'].append(Nightly(name="RunBuildB", branch=None, ...))
c['schedulers'].append(Nightly(name="RunBuildC", branch=None, ...))

Which all worked fine.

But I wanted to switch buildC to work from a scheduler that triggered based on commits to the branch "branches/branchC".

So I changed the last Nightly scheduler to the following:
c['schedulers'].append(Scheduler(name="RunBuildConCommit", branch="branches/branchC", ...)

Now I included the branch since I believed that is how the scheduler is told which branch to watch for changes, otherwise as I understand, it would take changes from any branch including trunk.

The problem appears to be, based on reviewing the properties that get passed to the triggered build, that as a result of setting the branch in the scheduler, it changes the branch used for the triggered build, "buildA", to be "branches/branchC" which is not what I want. I always want "buildA" to use trunk. Tweaking "buildA" SVN step to use "svnurl=svnurl+'trunk'" instead results in a exception whenever the builder receives a branch since it complains "assert not branch # we need baseURL= to use branches".

So what am I missing? Do I need to write a custom scheduler to handle this, or am I just overlooking something that is already available?

--
Regards,
Darragh Bailey

Systems Software Engineer
Hewlett Packard Galway Ltd.

Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
Registered Number: 361933 





More information about the devel mailing list