Bug 1168979 part 3 - Clean up upload_symbol template. r=mrrrgn

This commit is contained in:
Anthony Miyaguchi 2015-07-07 17:45:36 -07:00
parent b80fd5dd69
commit 963db8c8e6
2 changed files with 11 additions and 10 deletions

View File

@ -332,10 +332,11 @@ class Graph(object):
raise ValueError(message.fomrat(build['task']))
if 'post-build' in build:
# copy over the old parameters to update the template
post_parameters = copy.copy(build_parameters)
post_parameters['artifact_taskid'] = build_parameters['build_slugid']
post_parameters['taskId'] = slugid()
post_task = templates.load(build['post-build']['task'], post_parameters)
post_task['taskId'] = slugid()
if 'requires' not in post_task:
post_task['requires'] = []

View File

@ -1,20 +1,19 @@
# This is a sample task for uploading debug symbols to the socorro api
---
taskId: {{build_slugid}}
taskId: {{taskId}}
task:
created: '{{now}}'
deadline: '{{#from_now}}24 hours{{/from_now}}'
metadata:
source: http://todo.com/soon
owner: mozilla-taskcluster-maintenance@mozilla.com
owner: amiyaguchi@mozilla.com
name: '[TC] Upload Symbols'
description: 'Upload Symbols'
tags:
createdForUser: {{owner}}
workerType: b2gbuild
workerType: b2gtest
provisionerId: aws-provisioner-v1
schedulerId: task-graph-scheduler
@ -34,12 +33,13 @@ task:
command: ["/bin/bash", "bin/upload.sh"]
env:
ARTIFACT_TASKID: '{{artifact_taskid}}'
ARTIFACT_TASKID: '{{build_slugid}}'
extra:
index:
rank: {{pushlog_id}}
treeherderEnv:
- production
- staging
treeherder:
groupSymbol: tc
groupName: Submitted by taskcluster
symbol: B
symbol: us