diff --git a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 index 92aefe17c5..1e27e3ddd9 100644 --- a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 +++ b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 @@ -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,