taskotron-dev: try working for both distgit and regular tasks
This commit is contained in:
parent
f3d52558ae
commit
91c8eac5f4
1 changed files with 4 additions and 0 deletions
|
@ -166,6 +166,9 @@ factory.addStep(Git(repourl=Property('repo', default=Interpolate('{{ grokmirror_
|
|||
shallow=True))
|
||||
|
||||
# run the runner
|
||||
{% if deployment_type in ['dev'] %}
|
||||
factory.addStep(ShellCommand(command=Interpolate('cd %(prop:taskname)s &>/dev/null || runtask -i %(prop:item)s -t %(prop:item_type)s -a %(prop:arch)s -j %(prop:buildername)s/%(prop:buildnumber) --uuid %(prop:uuid)s runtask.yml',
|
||||
{% else %}
|
||||
factory.addStep(ShellCommand(command=["runtask",
|
||||
'-i', Interpolate('%(prop:item)s'),
|
||||
'-t', Interpolate('%(prop:item_type)s'),
|
||||
|
@ -173,6 +176,7 @@ factory.addStep(ShellCommand(command=["runtask",
|
|||
'-j', Interpolate('%(prop:buildername)s/%(prop:buildnumber)s'),
|
||||
'--uuid', Interpolate('%(prop:uuid)s'),
|
||||
'runtask.yml'],
|
||||
{% endif %}
|
||||
descriptionDone=[Interpolate('%(prop:taskname)s on %(prop:item)s')],
|
||||
name='runtask',
|
||||
timeout=2400,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue