In the main.cfg
file I need to get the name of the current revision that is being built and create a folder with the name of that revision.
问问题
159 次
2 回答
1
http://docs.buildbot.net/0.7.12/#Generalizing-VC-Systems
大多数 Source 步骤都会记录他们在 got_revision 属性中签出的修订。
于 2013-08-22T17:20:11.353 回答
1
从自定义步骤启动方法中,您可以检索branch
和revision
属性。就像是:
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)
您可以在文档中阅读有关构建属性的更多信息
于 2014-05-20T13:17:10.487 回答