Ticket #1976 (closed defect: worksforme)
Git build step fails after SVN step
|Reported by:||karl||Owned by:|
I have a build factory which needs to update and deploy from both a SVN and Git repository. This works when I force a build, however, when a build is scheduled by a SVN update noticed by PBChangeSource, the Git step fails. Here is a fragment:
instance = factory.BuildFactory() instance.addStep( SVN(svnurl='xxx', workdir='xxx', mode='clobber')) instance.addStep(Compile(workdir='xxx')) instance.addStep( Git(repourl='xxx_2', workdir='xxx_2' mode='clobber'))
When this is triggered by a SVN update, one of the commands run by the Git step is
/usr/bin/git reset --hard 4436
(or whatever SVN revision number triggered the build), which fails (since Git doesn't like the SVN revision number). This command isn't run for a forced build.
Slave is running buildbot-0.8.3p1.zip downloaded from code.google.com, master is running 0.8.3p1 as well.