[users at bb.net] Getting source URL and revision in build step
Pierre Tardy
tardyp at gmail.com
Thu Nov 16 13:49:38 UTC 2017
Hi Will,
Repo is a little bit different from the other source control, as it is a
higher level interface to git.
The manifest repository does not itself point to the source code that
Buildbot should be watching, but rather points to a list of repositories
that buildbot should be watching.
So the way that is currently in buildbot open source code is to have a
builder per manifest, then you would hardcode the manifest url and branch
that you are looking at.
Finally you would setup a scheduler which watch the branches you know that
the manifest is pointing to.
A better approach would be to parse the manifest and to watch exactly the
touple (repository, branch) that the manifest is really pointing at, but
this is much more complicated. (In my previous job, this is what we were
doing, but the code was quite specific to our workflow, and we never
upstreamed it)
Pierre
On Thu, Nov 16, 2017 at 12:49 PM Will Newton <will.newton at gmail.com> wrote:
> Hi,
>
> I'm new to buildbot and I think I am misunderstanding some part of how it
> works.
>
> I have a change hook setup so Bitbucket can hit it and tell me when I
> have a new revision to build.
>
> I also have a bunch of build steps, the first of which is a repo step,
> e.g.:
>
> factory.addStep(steps.Repo(manifestURL='', manifestBranch=''))
>
> However the repo I am being notified about is the one I want to
> checkout out, so what I really would like to do is:
>
> factory.addStep(steps.Repo(manifestURL=URLfromChangeHook,
> manifestBranch=revisionFromChangeHook))
>
> But it doesn't seem like there is an obvious way to do this. I could
> hardcode the URL reasonably but I absolutely require to be checking
> out the correct branch/revision here.
>
> Can anyone help me out with how I should structure this?
>
> Thanks,
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20171116/bb4e0ce9/attachment.html>
More information about the users
mailing list