Ticket #177 (new defect)

Opened 10 months ago

Last modified 2 days ago

2nd source.SVN build step picks up incorrect branch

Reported by: mmcdougall Assigned to:
Priority: major Milestone: undecided
Component: buildprocess Version: 0.7.6
Keywords: Cc: john@smadness.com, dustin, warner

Description

I have two important sub-directories that I want on my build slave -- buildscripts and archive. When I used the source.SVN build step to attempt to deploy these two folders, the second folder got the incorrect branch:

f.addStep(          source.SVN,          baseURL="svn+ssh://buildbot@ss.mycompany.com/svn/branches/jgale/",          defaultBranch="buildbot-build-archive",          directory="./build/archive",          haltOnFailure = 1          ) 

f.addStep(          source.SVN,          baseURL="svn+ssh://buildbot@ss.mycompany.com/svn/branches/jgale/",          defaultBranch="buildbot-buildscripts",          directory="./build/buildscripts",          haltOnFailure = 1          ) 

-- RESULTS IN -->

/usr/bin/svn checkout --revision 18837 --non-interactive svn+ssh://buildbot@ss.mycompany.com/svn/branches/jgale/buildbot-build-archive archive /usr/bin/svn checkout --revision 18837 --non-interactive svn+ssh://buildbot@ss.mycompany.com/svn/branches/jgale/buildbot-build-archive buildscripts

-- NOTE --> In the second checkout, I am getting the "archive" bits of my source repository, rather than the "buildscripts" bits of my source directory

Change History

01/31/08 14:33:21 changed by smadness

  • cc set to john@smadness.com.

02/17/08 10:03:18 changed by dustin

  • cc changed from john@smadness.com to john@smadness.com, dustin.

08/20/08 06:52:29 changed by dustin

  • cc changed from john@smadness.com, dustin to john@smadness.com, dustin, warner.

This is because you're specifying defaultBranch, which is being overridden by the branch from the ChangeSource.

It doesn't look like it's possible to do what you want right now, from my read of the code. Want to write up a patch?

11/21/08 09:23:33 changed by mmacvicar

I am also having this problem. I have at least 4 SVN buildsteps pulling from different places, sometimes it works, othe times the first steps is redirected to the changesource (thanks for pointing that out). I'll see if I can understand it enough to patch it.

I can probably work around it by using ShellCommand?( command = ['svn', 'up'...).