mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 11:00:32 +08:00
taskotron-dev: try working for both distgit and regular tasks
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user