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.
2 に答える
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 に答える