Skip to content

Commit

Permalink
Pass correct values
Browse files Browse the repository at this point in the history
  • Loading branch information
Callek committed Jun 10, 2020
1 parent 61c233b commit 9160e56
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions taskcluster/adhoc_taskgraph/fetches.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@ def create_fetch_url_task(config, name, fetch):
workdir = '/builds/worker'

# Arguments that matter to the cache digest
args = [
'bmo-attachment',
'--sha256', fetch['sha256'],
'--size', '%d' % fetch['size'],
'--name', artifact_name,
fetch['attachment-id']
]
args = (
'bmo-attachment '
'--sha256 {} '
'--size {} '
'--name {} '
'{} '
'/builds/worker/artifacts/{}'.format(
fetch['sha256'],
fetch['size'],
artifact_name,
fetch['attachment-id'],
artifact_name
)
)

cmd = [
'bash',
Expand All @@ -54,5 +61,5 @@ def create_fetch_url_task(config, name, fetch):
return {
'command': cmd,
'artifact_name': artifact_name,
'digest_data': ['bmo-attachment'] + args
'digest_data': args,
}

0 comments on commit 9160e56

Please sign in to comment.