taskotron: enable gzipping artifacts on stg/prod

This commit is contained in:
Martin Krizek
2016-07-20 11:29:21 +00:00
parent 0a8c234605
commit 9ed6831a12
2 changed files with 1 additions and 4 deletions

View File

@@ -196,10 +196,9 @@ factory.addStep(MasterShellCommand(command=["mkdir", '-m', '0755', Interpolate('
factory.addStep(DirectoryUpload(slavesrc=Interpolate('/var/lib/taskotron/artifacts/%(prop:uuid)s/'),
masterdest=Interpolate('{{ public_artifacts_dir }}/%(prop:uuid)s/task_output')))
{% if deployment_type in ['dev'] %}
# gzip artifacts
factory.addStep(MasterShellCommand(command=Interpolate('gzip {{ public_artifacts_dir }}/%(prop:uuid)s/task_output/*'),
descriptionDone=['gzip artifacs dir content']))
{% endif %}
{% if deployment_type in ['local'] %}
# copy taskotron log to master

View File

@@ -29,7 +29,6 @@ intype=application/x-gzip outtype=text/plain \
cmd="/bin/gunzip -c -"
{% if deployment_type == 'dev' %}
<DirectoryMatch "^{{ public_artifacts_dir }}/all/(.+)/task_output/">
RewriteEngine on
@@ -46,4 +45,3 @@ cmd="/bin/gunzip -c -"
#SetOutputFilter INFLATE
#ForceType text/plain
</DirectoryMatch>
{% endif %}