コード例 #1
0
 def makeBuildStatus(self, branches):
     """
     Make an IBuildStatus that has source stamps for the given branches.
     """
     sourceStamps = [SourceStamp(branch=branch) for branch in branches]
     # This is the bare minimum we can specify to construct a
     # `BuildStatus`.
     build = BuildStatus(BuilderStatus(None, None, None, None), None, None)
     build.setSourceStamps(sourceStamps)
     return build
コード例 #2
0
 def makeBuildStatus(self, branches):
     """
     Make an IBuildStatus that has source stamps for the given branches.
     """
     sourceStamps = [SourceStamp(branch=branch) for branch in branches]
     # This is the bare minimum we can specify to construct a
     # `BuildStatus`.
     build = BuildStatus(BuilderStatus(None, None, None, None), None, None)
     build.setSourceStamps(sourceStamps)
     return build
コード例 #3
0
 def newBuild(self):
     """The Builder has decided to start a build, but the Build object is
     not yet ready to report status (it has not finished creating the
     Steps). Create a BuildStatus object that it can use."""
     number = self.nextBuildNumber
     self.nextBuildNumber += 1
     # TODO: self.saveYourself(), to make sure we don't forget about the
     # build number we've just allocated. This is not quite as important
     # as it was before we switch to determineNextBuildNumber, but I think
     # it may still be useful to have the new build save itself.
     s = BuildStatus(self, self.master, number)
     s.waitUntilFinished().addCallback(self._buildFinished)
     return s
コード例 #4
0
ファイル: builder.py プロジェクト: PeterDaveHello/buildbot
 def newBuild(self):
     """The Builder has decided to start a build, but the Build object is
     not yet ready to report status (it has not finished creating the
     Steps). Create a BuildStatus object that it can use."""
     number = self.nextBuildNumber
     self.nextBuildNumber += 1
     # TODO: self.saveYourself(), to make sure we don't forget about the
     # build number we've just allocated. This is not quite as important
     # as it was before we switch to determineNextBuildNumber, but I think
     # it may still be useful to have the new build save itself.
     s = BuildStatus(self, self.master, number)
     s.waitUntilFinished().addCallback(self._buildFinished)
     return s
コード例 #5
0
def fakeBuildStatus(master, builder, num):
    build_status = BuildStatus(builder.builder_status, master, num)
    build_status.started = 1422441500
    build_status.finished = 1422441501.21
    build_status.reason = 'A build was forced by user@localhost'
    build_status.slavename = 'build-slave-01'
    build_status.results = SUCCESS
    return build_status
コード例 #6
0
 def getCachedBuild(number):
     build_status = BuildStatus(self.builder_status, self.master,
                                number)
     build_status.finished = 1422441501.21
     build_status.reason = 'A build was forced by user@localhost'
     build_status.slavename = 'build-slave-01'
     build_status.results = SUCCESS
     build_status.sources = [
         SourceStamp(
             branch='katana',
             codebase='katana-buildbot',
             revision='804d540eac7b90022130d34616a8f8336fe5691a')
     ]
     return build_status
コード例 #7
0
ファイル: builder.py プロジェクト: zjtheone/buildbot
 def newBuild(self):
     s = BuildStatus(self, self.master, 0)
     return s