Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge #6993
Browse files Browse the repository at this point in the history
6993: Bug 1631834 - Allow action tasks to be executed r=MihaiTabara a=JohanLorenzo

Backports mozilla-mobile/reference-browser#1182, mozilla-mobile/fenix#10644 and mozilla-mobile/fenix#10650 to android-components



Co-authored-by: Johan Lorenzo <jlorenzo@mozilla.com>
  • Loading branch information
MozLando and JohanLorenzo committed May 18, 2020
2 parents ecdb3cf + ede9f1d commit a588554
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tasks:
- $let:
taskgraph:
branch: taskgraph
revision: a8366f88fc8b35b284ad550358c89ec10133fb42
revision: cab4565345d0d0effa66f18fe91335dd6d744031
trustDomain: mobile
in:
$let:
Expand Down Expand Up @@ -137,7 +137,10 @@ tasks:
$if: 'tasks_for == "action"'
then:
name: "Action: ${action.title}"
description: '${action.description}'
description: |
${action.description}
Action triggered by clientID `${clientId}`
else:
name: "Decision Task for cron job ${cron.job_name}"
description: 'Created by a [cron task](https://firefox-ci-tc.services.mozilla.com/tasks/${cron.task_id})'
Expand All @@ -156,12 +159,22 @@ tasks:
then:
kind: cron-task
routes:
$flatten:
$flattenDeep:
- checks
- $if: 'level == "3"'
then:
- "tc-treeherder.v2.${project}.${head_sha}"
else: []
- tc-treeherder.v2.${project}.${head_sha}
- $if: 'tasks_for == "github-push"'
then:
- index.mobile.v2.${project}.branch.${short_head_branch}.latest.taskgraph.decision
- index.mobile.v2.${project}.branch.${short_head_branch}.revision.${head_sha}.taskgraph.decision
- index.mobile.v2.${project}.revision.${head_sha}.taskgraph.decision
- $if: 'tasks_for == "cron"'
then:
# cron context provides ${head_branch} as a short one
- index.mobile.v2.${project}.branch.${head_branch}.latest.taskgraph.decision-${cron.job_name}
- index.mobile.v2.${project}.branch.${head_branch}.revision.${head_sha}.taskgraph.decision-${cron.job_name}
- index.mobile.v2.${project}.branch.${head_branch}.revision.${head_sha}.taskgraph.cron.${ownTaskId}
scopes:
# `https://` is 8 characters so, ${repoUrl[8:]} is the repository without the protocol.
$if: 'tasks_for == "github-push"'
Expand Down Expand Up @@ -304,6 +317,7 @@ tasks:
taskGroupId: '${action.taskGroupId}'
taskId: {$eval: 'taskId'}
input: {$eval: 'input'}
clientId: {$eval: 'clientId'}
- $if: 'tasks_for == "cron"'
then:
cron: {$json: {$eval: 'cron'}}
Expand Down

1 comment on commit a588554

@firefoxci-taskcluster
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh! Looks like an error! Details

InterpreterError at template.tasks[0].routes[1][1][0]: unknown context value short_head_branch

Please sign in to comment.