Skip to content
Snippets Groups Projects
Commit 51d44512 authored by Johan Lorenzo's avatar Johan Lorenzo
Browse files

Revert "Bug 1782736 - part 4: Let decision task clone the private monorepo through SSH"

This reverts commit 2db89572.
parent cf01ea94
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,7 @@ policy: ...@@ -6,8 +6,7 @@ policy:
tasks: tasks:
- $let: - $let:
trustDomain: mobile trustDomain: mobile
canonicalRepo: git@github.com:mozilla-mobile/firefox-android.git canonicalRepo: https://github.com/mozilla-mobile/firefox-android
canonicalHttpsRepo: https://github.com/mozilla-mobile/firefox-android
# Github events have this stuff in different places... # Github events have this stuff in different places...
ownerEmail: ownerEmail:
$if: 'tasks_for in ["cron", "action"]' $if: 'tasks_for in ["cron", "action"]'
...@@ -40,19 +39,19 @@ tasks: ...@@ -40,19 +39,19 @@ tasks:
baseRepoUrl: baseRepoUrl:
$if: 'tasks_for == "github-push"' $if: 'tasks_for == "github-push"'
then: '${event.repository.ssh_url}' then: '${event.repository.html_url}'
else: else:
$if: 'tasks_for == "github-pull-request"' $if: 'tasks_for == "github-pull-request"'
then: '${event.pull_request.base.repo.ssh_url}' then: '${event.pull_request.base.repo.html_url}'
else: else:
$if: 'tasks_for in ["cron", "action"]' $if: 'tasks_for in ["cron", "action"]'
then: '${repository.url}' then: '${repository.url}'
repoUrl: repoUrl:
$if: 'tasks_for == "github-push"' $if: 'tasks_for == "github-push"'
then: '${event.repository.ssh_url}' then: '${event.repository.html_url}'
else: else:
$if: 'tasks_for == "github-pull-request"' $if: 'tasks_for == "github-pull-request"'
then: '${event.pull_request.head.repo.ssh_url}' then: '${event.pull_request.head.repo.html_url}'
else: else:
$if: 'tasks_for in ["cron", "action"]' $if: 'tasks_for in ["cron", "action"]'
then: '${repository.url}' then: '${repository.url}'
...@@ -129,8 +128,7 @@ tasks: ...@@ -129,8 +128,7 @@ tasks:
$let: $let:
level: level:
$if: > $if: >
(tasks_for in ["github-push", "action"] && repoUrl == canonicalRepo) tasks_for in ["github-push", "action", "cron"] && repoUrl == canonicalRepo
|| (tasks_for in ["cron"] && repoUrl == canonicalHttpsRepo)
then: '3' then: '3'
else: '1' else: '1'
...@@ -242,7 +240,6 @@ tasks: ...@@ -242,7 +240,6 @@ tasks:
MOBILE_HEAD_REV: '${head_sha}' MOBILE_HEAD_REV: '${head_sha}'
MOBILE_PIP_REQUIREMENTS: taskcluster/requirements.txt MOBILE_PIP_REQUIREMENTS: taskcluster/requirements.txt
MOBILE_REPOSITORY_TYPE: git MOBILE_REPOSITORY_TYPE: git
MOBILE_SSH_SECRET_NAME: project/mobile/firefox-android/github-clone-ssh
MOZ_AUTOMATION: "1" MOZ_AUTOMATION: "1"
REPOSITORIES: {$json: {mobile: "firefox-android"}} REPOSITORIES: {$json: {mobile: "firefox-android"}}
- $if: 'tasks_for in ["github-pull-request"]' - $if: 'tasks_for in ["github-pull-request"]'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment