taskotron-dev: try working for both distgit and regular tasks

This commit is contained in:
Martin Krizek 2016-08-02 13:13:08 +00:00
parent f3d52558ae
commit 91c8eac5f4

View file

@ -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,