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

Bug 1786780 - part 2: Fix assume scope when SSH is used

parent d0156f13
No related branches found
No related tags found
No related merge requests found
...@@ -207,21 +207,20 @@ tasks: ...@@ -207,21 +207,20 @@ tasks:
- index.mobile.v2.${project}.branch.${head_ref}.revision.${head_sha}.taskgraph.decision-${cron.job_name} - index.mobile.v2.${project}.branch.${head_ref}.revision.${head_sha}.taskgraph.decision-${cron.job_name}
- index.mobile.v2.${project}.branch.${head_ref}.revision.${head_sha}.taskgraph.cron.${ownTaskId} - index.mobile.v2.${project}.branch.${head_ref}.revision.${head_sha}.taskgraph.cron.${ownTaskId}
scopes: scopes:
# `https://` is 8 characters so, ${repoUrl[8:]} is the repository without the protocol.
$if: 'tasks_for == "github-push"' $if: 'tasks_for == "github-push"'
then: then:
- 'assume:repo:github.com/${repoFullName}:branch:${short_head_ref}' - 'assume:repo:github.com/${repoFullName}:branch:${short_head_ref}'
else: else:
$if: 'tasks_for == "github-pull-request"' $if: 'tasks_for == "github-pull-request"'
then: then:
- 'assume:repo:github.com/${event.pull_request.base.repo.full_name}:pull-request' - 'assume:repo:github.com/${repoFullName}:pull-request'
else: else:
$if: 'tasks_for == "action"' $if: 'tasks_for == "action"'
then: then:
# when all actions are hooks, we can calculate this directly rather than using a variable # when all actions are hooks, we can calculate this directly rather than using a variable
- '${action.repo_scope}' - '${action.repo_scope}'
else: else:
- 'assume:repo:${repoUrl[8:]}:cron:${cron.job_name}' - 'assume:repo:github.com/${repoFullName}:cron:${cron.job_name}'
requires: all-completed requires: all-completed
priority: lowest priority: lowest
......
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