2013-08-22 52 views

回答

1

從自定義步驟開始方法中,您可以檢索branchrevision屬性。 喜歡的東西:

from buildbot.steps.shell import ShellCommand 

class MyStep(ShellCommand): 
    def start(self): 
     branch = self.getProperty('branch') 
     revision = self.getProperty('revision') 
     # Do watever, for example 
     # self.setCommand('echo "Building %s"' % revision) 
     ShellCommand.start(self) 

可以在the documentation

閱讀更多關於構建屬性