[Buildbot] #3508: GitlabGit step for cloning forks

Buildbot trac trac at buildbot.net
Tue Mar 29 17:51:38 UTC 2016


#3508: GitlabGit step for cloning forks
------------------------+-----------------------
Reporter:  cmouse       |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  minor        |  Milestone:  undecided
 Version:  0.9.0b7      |   Keywords:
------------------------+-----------------------
 In an environment, where gitlab webhooks are used to submit builds, these
 webhooks can also be used for forks. Buildbot cannot handle these
 correctly, viz, it should add an upstream and pull the fork's code over
 that.

 Alternatively it can do fresh checkout from fork's repository, which is
 what the following fewliner will do:

 {{{
 class GitlabGit(steps.Git):
    @defer.inlineCallbacks
    def startVC(self, branch, revision, patch):
      self.repourl =
 self.build.getSourceStamp(self.codebase).changes[0].repository
      yield super(GitlabGit,self).startVC(branch, revision, patch)
 }}}

--
Ticket URL: <http://trac.buildbot.net/ticket/3508>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list