First, here is an example which can be found here
is an another example.
Now, for the doStepIf, you should set it to a function that returns a
boolean value (e.g., True or False). This function will only take one
parameter which is the "step" object itself.
Now, for the conditions you want:
1) it's dependent repo source changed
2) it's corresponding scheduler is "Force"
I suggest 2 separate buildsteps each with a doStepIf parameter. And it
sounds like you would have to separate build factories:
1 - For the dependent repo change
1 - For the "Force" scheduler
Then, you would create 1 function for each buildstep (for example:
checkIfBuildOne and checkIfBuildTwo).
I hope this helps.
On Sat, Aug 5, 2017 at 8:42 PM kipade <kip...@163.com> wrote:
> Thanks for your reply.
> And I have a nother issue, I want to use doStepIf for a step, but puzzled
> doStepIf is a bool property of a step, now I want to control it by
> following conditions:
> 1) it's dependent repo source changed
> 2) it's corresponding scheduler is "Force"
> What should I passed to doStepIf parameter?
> If I passed it a function like checkIfBuild:
> 1) how should I define such a function?
> 2) what parameters should I pass to this function
> btw, Im newbie for python, and started buildbot the day before yesterday
> thanks all
> 在 2017/8/6 上午10:07, Alvaro Erickson 写道:
> Hi kipade,
> Yes, you use codebases (i.e., a codebase generator) for multiple
> codebases. Now, if you want to look for a specific branch during your
> checkout step, you need to set the "branch" property for the git poller you
> are using. If you are using one.
> On Sat, Aug 5, 2017 at 3:17 AM, kipade <kip...@163.com> wrote:
>> Thanks Alvaro, I can download multiple git repos from the server use
>> codebases now. but I found the branch property take no sense for
>> codebases, right?
>> I have to set branch parameter for source steps.
>> On Fri, 04 Aug 2017 15:36:47 +0000
>> Alvaro Erickson <alvaro.erick...@gmail.com> wrote:
>> > Greetings,
>> > Do you have more details around your issue? For example, have you
>> created a
>> > change source for each repo (e.g., for GitHub a change hook:
>> > http://docs.buildbot.net/current/manual/cfg-wwwhooks.html#chsrc-GitHub
>> > Also, for source checkout for each repo, it is best to have a separate
>> > source checkout step for each one. For example, for Git, using the
>> > following source checkout:
>> > http://docs.buildbot.net/current/manual/cfg-buildsteps.html#git
>> > Regards,
>> > Alvaro
>> > On Fri, Aug 4, 2017 at 5:06 AM kipade <kip...@163.com> wrote:
>> > > My build project have sevral code repos. I use factory.addStep to add
>> > > multiple repo downloading.
>> > >
>> > > But, I found only the last one was saved, all previous code repo were
>> > >
>> > > How should I download multiple code repos?
>> > >
>> > > Regards,
>> > >
>> > >
>> > > _______________________________________________
>> > > users mailing list
>> > > firstname.lastname@example.org
>> > > https://lists.buildbot.net/mailman/listinfo/users
>> > >
>> kipade <kip...@163.com>
users mailing list