minor changes for passing args
This commit is contained in:
parent
4d1957712d
commit
17bc49bafc
|
@ -69,7 +69,7 @@ def list_jobs(directory=".buildbot"):
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
def _get_dockerfile_contents(props, jobname, os_codename):
|
def _get_dockerfile_contents(jobname, os_codename):
|
||||||
"""
|
"""
|
||||||
Read contents of a Dockerfile and add extra contents for the given os_codename
|
Read contents of a Dockerfile and add extra contents for the given os_codename
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -31,13 +31,19 @@ def find_artifacts(directory="out"):
|
||||||
|
|
||||||
@util.renderer
|
@util.renderer
|
||||||
def get_dockerfile_contents(props):
|
def get_dockerfile_contents(props):
|
||||||
return _get_dockerfile_contents(props, props.getProperty('jobname', default=None), util.Interpolate("%(prop:os_codename)s"))
|
return _get_dockerfile_contents(props.getProperty('jobname', default=None), util.Interpolate("%(prop:os_codename)s"))
|
||||||
|
|
||||||
|
|
||||||
def add_parent_step(build_factory):
|
def add_parent_step(build_factory):
|
||||||
"""
|
"""
|
||||||
Add a step to the parent build factory that will trigger the child hooks
|
Add a step to the parent build factory that will trigger the child hooks
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
build_factory.addStep(steps.ShellCommand(
|
||||||
|
name="download worker",
|
||||||
|
command=["sudo", "wget", "-O", "https://git.bitmessage.org/Bitmessage/buildbot_multibuild/raw/branch/master/lib/worker_multibuild.py", "worker_multibuild.py"]
|
||||||
|
))
|
||||||
|
|
||||||
build_factory.addStep(
|
build_factory.addStep(
|
||||||
steps.SetPropertyFromCommand(
|
steps.SetPropertyFromCommand(
|
||||||
name="Get OS codename",
|
name="Get OS codename",
|
||||||
|
@ -67,11 +73,6 @@ def add_child_sh_steps(build_factory, directory=".buildbot"):
|
||||||
Add a step to the download, build and test factory
|
Add a step to the download, build and test factory
|
||||||
"""
|
"""
|
||||||
|
|
||||||
build_factory.addStep(steps.ShellCommand(
|
|
||||||
name="download worker",
|
|
||||||
command=["sudo", "wget", "-O", "https://git.bitmessage.org/Bitmessage/buildbot_multibuild/raw/branch/master/lib/worker_multibuild.py", "worker_multibuild.py"]
|
|
||||||
))
|
|
||||||
|
|
||||||
build_factory.addStep(
|
build_factory.addStep(
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
name=util.Interpolate("build_%(prop:jobname)s"),
|
name=util.Interpolate("build_%(prop:jobname)s"),
|
||||||
|
|
Loading…
Reference in New Issue