Bug 2046941: fix new switch statements introduced by 2044114 r=releng-reviewers,ahal
The autoland one has been verified to have multiple truthy-branches (not allowed by JSON-e); the other one looks like it plausibly could too. Differential Revision: https://phabricator.services.mozilla.com/D306277
This commit is contained in:
committed by
bhearsum@mozilla.com
parent
5b5f145d02
commit
b8535b7f4d
+9
-5
@@ -260,9 +260,11 @@ tasks:
|
|||||||
extraArgs:
|
extraArgs:
|
||||||
$switch:
|
$switch:
|
||||||
'tasks_for == "cron"': '${cron.quoted_args}'
|
'tasks_for == "cron"': '${cron.quoted_args}'
|
||||||
'repository.project == "autoland"': '--no-verify'
|
$default:
|
||||||
'repository.project == "try"': '--no-verify --allow-parameter-override'
|
$switch:
|
||||||
$default: ''
|
'repository.project == "autoland"': '--no-verify'
|
||||||
|
'repository.project == "try"': '--no-verify --allow-parameter-override'
|
||||||
|
$default: ''
|
||||||
in:
|
in:
|
||||||
$if: 'tasks_for == "action"'
|
$if: 'tasks_for == "action"'
|
||||||
then: >
|
then: >
|
||||||
@@ -573,8 +575,10 @@ tasks:
|
|||||||
extraArgs:
|
extraArgs:
|
||||||
$switch:
|
$switch:
|
||||||
'tasks_for == "cron"': '${cron.quoted_args}'
|
'tasks_for == "cron"': '${cron.quoted_args}'
|
||||||
'repoType == "dev"': '--allow-parameter-override'
|
$default:
|
||||||
$default: ''
|
$switch:
|
||||||
|
'repoType == "dev"': '--allow-parameter-override'
|
||||||
|
$default: ''
|
||||||
in:
|
in:
|
||||||
$if: 'eventType == "action"'
|
$if: 'eventType == "action"'
|
||||||
then: >
|
then: >
|
||||||
|
|||||||
Reference in New Issue
Block a user