[Buildbot-devel] Can't make schedulers trigger a build

Julien Gilli julien.gilli at wengo.fr
Thu Nov 24 21:38:10 UTC 2005


Brian Warner a écrit :

>>On a svn commit, no action is triggered, even when i setup a very low 
>>delay as a timer.
>>    
>>
>
>  
>
>>c['sources'].append(PBChangeSource(prefix=""))
>>    
>>
>
>The PBChangeSource sets up a listener.. now you need to set up a sender.
>
>  
>
Ok, i had misunderstood the doc. Now that i googled and RTFMed a bit, i 
set up the post commit hook :-).

>The comments in contrib/svn_buildbot.py have a good description of how to
>modify the post-commit script. Also, you can run 'buildbot sendchange' to
>test that your PBChangeSource is listening and accessible.. it uses the same
>TCP-connection scheme as svn_buildbot.py, just with different arguments.
>  
>
Thank you very much, it helped me a lot to troubleshoot my setup.
However, the svn_buildbot.py script mentions :
"/path/to/svn_buildbot.py --repository "$REPOS" --revision "$REV" 
--bbserver localhost --bbport 9987"
but it seems that the PBChangeSource is listening on port 9989 (i 
suppose it is given by the c['slavePortnum'] = 9989 in the master.cfg) 
by default.

>>One more thing though : i had to modify buildbot a bit to give the svn 
>>user and password with --username and --password command line switches 
>>instead than in the URL.
>>    
>>
>
>Interesting! How are these passed into the 'svn' command? 
>
I've changed the SVN class constructor to get more parameters (svnUser 
and svnPassword). When they are given, the various svn commands executed 
use the --username and --password command line switches.

>If you think this
>functionality would be useful to others, would you be willing to contribute a
>patch?
>
>  
>
Definitely !

>hope that helps,
>  
>
It helps me _a lot_. Thank you very much for your help. It definitely 
makes us think that buildbot is the way to go toward continuous integration.

All the best,

-- 
Julien Gilli





More information about the devel mailing list