buildmaster: revert using date directory for artifacts
This commit is contained in:
parent
1f95cc2e1b
commit
603222e7ff
1 changed files with 3 additions and 13 deletions
|
@ -173,27 +173,17 @@ factory.addStep(ShellCommand(command=["runtask", '-i',
|
|||
|
||||
|
||||
{% if deployment_type == 'dev' %}
|
||||
|
||||
import datetime
|
||||
from buildbot.process.properties import renderer
|
||||
|
||||
@renderer
|
||||
def today(props):
|
||||
return datetime.datetime.now().strftime("%Y%m%d")
|
||||
|
||||
artifactsdir = Interpolate('{{ public_artifacts_dir }}/%(kw:today)s/%(prop:uuid)s', today=today)
|
||||
|
||||
# create artifacts dir on master
|
||||
factory.addStep(MasterShellCommand(command=["mkdir", '-p', '-m', '0755', artifactsdir],
|
||||
factory.addStep(MasterShellCommand(command=["mkdir", '-m', '0755', Interpolate('{{ public_artifacts_dir }}/%(prop:uuid)s')],
|
||||
descriptionDone=['Create artifacs dir']))
|
||||
|
||||
# copy artifacts to master
|
||||
factory.addStep(DirectoryUpload(slavesrc=Interpolate('/var/lib/taskotron/artifacts/%(prop:uuid)s/'),
|
||||
masterdest='%s/task_output' % artifactsdir))
|
||||
masterdest=Interpolate('{{ public_artifacts_dir }}/%(prop:uuid)s/task_output')))
|
||||
|
||||
# copy taskotron log to master
|
||||
factory.addStep(FileUpload(slavesrc='/var/log/taskotron/taskotron.log',
|
||||
masterdest='%s/taskotron.log' % artifactsdir,
|
||||
masterdest=Interpolate('{{ public_artifacts_dir }}/%(prop:uuid)s/taskotron.log'),
|
||||
mode=0644))
|
||||
{% else %}
|
||||
# capture the taskotron log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue