buildmaster: make sure minions are removed

This commit is contained in:
Martin Krizek 2017-02-21 14:18:08 +00:00
parent 68ddd68bf8
commit fb85471281

View file

@ -188,6 +188,10 @@ factory.addStep(ShellCommand(command=["runtask",
logfiles={'taskotron.log': {'filename': '/var/log/taskotron/taskotron.log', }}))
{% endif %}
factory.addStep(ShellCommand(command=Interpolate('testcloud instance remove --force taskotron-%(prop:uuid)s; true'),
descriptionDone=['Make sure the minion is removed']))
# create artifacts dir on master
factory.addStep(MasterShellCommand(command=["mkdir", '-m', '0755', Interpolate('{{ public_artifacts_dir }}/%(prop:uuid)s')],
descriptionDone=['Create artifacs dir']))