Opened 4 years ago

#3508 new enhancement

GitlabGit step for cloning forks

Reported by: cmouse Owned by:
Priority: minor Milestone: undecided
Version: 0.9.0b7 Keywords:
Cc:

Description

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)

Change History (0)

Note: See TracTickets for help on using tickets.