<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 6, 2016, at 15:35, Riccardo Corsi <<a href="mailto:riccardo.corsi@kairos3d.it" class="">riccardo.corsi@kairos3d.it</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Jared,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">thanks for your reply. </div><div class="gmail_default" style="font-family:tahoma,sans-serif">I've read some docs on the codebases but I still have some doubts:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">1. is it mandatory to have a codebaseGenerator or can I simply specify a codebase dictionary as showed here in my force scheduler? <a href="http://docs.buildbot.net/0.8.12/manual/cfg-schedulers.html#codebaseparameter" class="">http://docs.buildbot.net/0.8.12/manual/cfg-schedulers.html#codebaseparameter</a></div></div></div></blockquote><div><br class=""></div><div>CodebaseParameter is what I use (I have 20 of them in each of my schedulers!)</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">2. in the source steps of my build, which parameters still need to be specified (repourl, branch, etc...) and which are read from the codebase? </div><div class="gmail_default" style="font-family:tahoma,sans-serif">If one param (e.g. branch) is both present in the codebase and specified as source step property, which one will have the precedence?</div></div></div></blockquote><div><br class=""></div><div>Here’s what I use for each of my codebases, where “repo” is the defult repo URL:</div><div><br class=""></div><div><div>              Git(codebase=codebase</div><div>                          workdir=codebase,</div><div>                          repourl=repo,</div><div>                          mode='full',</div><div>                          method='fresh',</div><div>                          progress=True,</div><div>                          branch='master')</div><div><br class=""></div></div><div>The values passed from the Scheduler will override those here, if the scheduler specifies them.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Ricky</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Apr 6, 2016 at 5:02 AM, Jared Grubb <span dir="ltr" class=""><<a href="mailto:jared.grubb@gmail.com" target="_blank" class="">jared.grubb@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Your “all” builder needs to have two “codebases”, which is the term for each repo you want to manage. In other words, for each of A and B, you’d have the full set of repo/branch/revision/got_revision parameters.</div><div class=""><br class=""></div><div class="">Jared</div><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Apr 4, 2016, at 01:24, Riccardo Corsi <<a href="mailto:riccardo.corsi@kairos3d.it" target="_blank" class="">riccardo.corsi@kairos3d.it</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi Everyone,</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have the following scenario, using buildbot 0.8.12: </div><div class="gmail_default" style="font-family:tahoma,sans-serif">project A with its own builder A and project B with builder B. </div><div class="gmail_default" style="font-family:tahoma,sans-serif">The 2 projects are based on 2 different git repos.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Now i have a "builder All" which simply triggers builder A and B through respective trigger schedulers, but I want to be able to specify 2 on the web ui 2 different git branches to be used for A and B.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have added a custom parameter "branch_for_b" which I then read as property in the builderB's git step like this:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><div class="gmail_default">buildFactory.addStep(steps.Git(</div><div class="gmail_default">      branch = util.Property('branch_for_b', default='develop')</div><div class="gmail_default">      ...)</div><div class="gmail_default"><br class=""></div></div><div class="gmail_default" style="font-family:tahoma,sans-serif">But when I specify another branch in the standard branch field of the web ui (which I intended for project A) it overrides whatever I set in branch_for_b, as if B git's step is ignoring the property I'm passing and reading from the "main" branch field.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">How am I supposed to handle this case?</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thank you,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Ricky</div></div></div></div>
_______________________________________________<br class="">users mailing list<br class=""><a href="mailto:users@buildbot.net" target="_blank" class="">users@buildbot.net</a><br class=""><a href="https://lists.buildbot.net/mailman/listinfo/users" target="_blank" class="">https://lists.buildbot.net/mailman/listinfo/users</a></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>