Skip to content

Commit

Permalink
Bug 1528033 - fix yamllint in .taskcluster.yml r=jcj
Browse files Browse the repository at this point in the history
Reviewers: jcj

Reviewed By: jcj

Bug #: 1528033

Differential Revision: https://phabricator.services.mozilla.com/D19839

--HG--
extra : amend_source : 72ffdcae33759f6bee0ac5fb911a8b36d4eef2ca
  • Loading branch information
djmitche committed Feb 14, 2019
1 parent 5501ec0 commit 85e5c1c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .taskcluster.yml
Expand Up @@ -6,14 +6,21 @@
# now,
# ownTaskId: // taskId of the task that will be created
# }

---
version: 1
tasks:
- $let:
# sometimes the push user is just `ffxbld` or the like, but we want an email-like field..
ownerEmail: {$if: '"@" in push.owner', then: '${push.owner}', else: '${push.owner}@noreply.mozilla.org'}
# sometimes the push user is just `ffxbld` or the like, but we want an
# email-like field..
ownerEmail:
$if: '"@" in push.owner'
then: '${push.owner}'
else: '${push.owner}@noreply.mozilla.org'
# ensure there's no trailing `/` on the repo URL
repoUrl: {$if: 'repository.url[-1] == "/"', then: {$eval: 'repository.url[:-1]'}, else: {$eval: 'repository.url'}}
repoUrl:
$if: 'repository.url[-1] == "/"'
then: {$eval: 'repository.url[:-1]'}
else: {$eval: 'repository.url'}
in:
taskId: '${ownTaskId}'
taskGroupId: '${ownTaskId}'
Expand Down Expand Up @@ -43,7 +50,8 @@ tasks:
- "tc-treeherder.v2.${repository.project}.${push.revision}.${push.pushlog_id}"

payload:
image: djmitche/nss-decision:0.0.3 # TODO: nssdev, not djmitche, once the image is pushed there
# TODO: use nssdev org , not djmitche, once the image is pushed there
image: djmitche/nss-decision:0.0.3

env:
TC_OWNER: "${push.owner}"
Expand Down

0 comments on commit 85e5c1c

Please sign in to comment.