@@ -5,15 +5,19 @@ policy:
5
5
pullRequests : collaborators
6
6
tasks :
7
7
- $let :
8
+ # XXX Set to `true` for private repos
8
9
privateRepo : false
10
+ # XXX Use
11
+ # `system` for system add-on,
12
+ # `privileged` for AMO or self-hosted privileged add-on,
13
+ # `mozillaonline-privileged` for Mozilla China add-on,
14
+ # `normandy-privileged` for normandy add-on
15
+ # to enable siging on push/PR.
9
16
xpiSigningType : " privileged"
10
17
# The below doesn't need changing on initial repo setup
11
- taskgraph :
12
- branch : taskgraph
13
- revision : 7dde9ce7740068d7b73218976343a28fc99be847
14
18
template :
15
19
repo : https://github.com/mozilla-extensions/xpi-template
16
- branch : master
20
+ branch : main
17
21
trustDomain : xpi
18
22
in :
19
23
$if : ' tasks_for in ["github-pull-request", "github-push", "action", "cron"]'
@@ -137,8 +141,6 @@ tasks:
137
141
then :
138
142
source : ' ${repoUrl}/raw/${head_sha}/.taskcluster.yml'
139
143
else :
140
- # XXX revisit after https://github.com/taskcluster/taskcluster/pull/2812
141
- # is deployed to the firefoxci cluster.
142
144
source : ' ssh://github.com/${repoUrl[15:-4]}/raw/${head_sha}/.taskcluster.yml'
143
145
- $if : ' tasks_for in ["github-push", "github-pull-request"]'
144
146
then :
@@ -174,7 +176,6 @@ tasks:
174
176
- " index.${trustDomain}.v2.${project}.revision.${head_sha}.taskgraph.decision"
175
177
else : []
176
178
scopes :
177
- # `https://` is 8 characters so, ${repoUrl[8:]} is the repository without the protocol.
178
179
$if : ' tasks_for == "github-push"'
179
180
then :
180
181
$let :
@@ -222,13 +223,9 @@ tasks:
222
223
TEMPLATE_HEAD_REPOSITORY : ' ${template.repo}'
223
224
TEMPLATE_HEAD_REV : ' ${template.branch}'
224
225
TEMPLATE_HEAD_REF : ' ${template.branch}'
226
+ TEMPLATE_PIP_REQUIREMENTS : taskcluster/requirements.txt
225
227
TEMPLATE_REPOSITORY_TYPE : git
226
- TASKGRAPH_BASE_REPOSITORY : https://hg.mozilla.org/ci/taskgraph
227
- TASKGRAPH_HEAD_REPOSITORY : https://hg.mozilla.org/ci/${taskgraph.branch}
228
- TASKGRAPH_HEAD_REV : ' ${taskgraph.revision}'
229
- TASKGRAPH_REPOSITORY_TYPE : hg
230
- REPOSITORIES : {$json: {xpi: "XPI Manifest", taskgraph: "Taskgraph", template: "XPI Template"}}
231
- HG_STORE_PATH : /builds/worker/checkouts/hg-store
228
+ REPOSITORIES : {$json: {xpi: "XPI Manifest", template: "XPI Template"}}
232
229
- $if : ' privateRepo'
233
230
then :
234
231
XPI_SSH_SECRET_NAME : project/xpi/xpi-github-clone-ssh
@@ -246,16 +243,13 @@ tasks:
246
243
chainOfTrust : true
247
244
# Note: This task is built server side without the context or tooling that
248
245
# exist in tree so we must hard code the hash
249
- image :
250
- mozillareleases/taskgraph:decision-d9fab4448ee5e00b0a29825c3f0609af957279daf102547d715414782710ef06@sha256:79eb469838621168a6364476b96850fc9f2d353686195c010ad078fdcf29568e
251
-
246
+ image : mozillareleases/taskgraph:decision-f19bfa3ae9dbc19190149445bfc38ad966b713336e44342c7643b3f7f1e0b023@sha256:ddcc7348db272885e8ea32825f698bfafa4727401099531cd8239d3d458b39aa
252
247
maxRunTime : 1800
253
248
254
249
command :
255
250
- /usr/local/bin/run-task
256
251
- ' --xpi-checkout=/builds/worker/checkouts/src'
257
252
- ' --template-checkout=/builds/worker/checkouts/template'
258
- - ' --taskgraph-checkout=/builds/worker/checkouts/taskgraph'
259
253
- ' --task-cwd=/builds/worker/checkouts/src'
260
254
- ' --'
261
255
- bash
@@ -265,14 +259,12 @@ tasks:
265
259
in :
266
260
$if : ' tasks_for == "action"'
267
261
then : >
268
- PIP_IGNORE_INSTALLED=0 pip install --user /builds/worker/checkouts/taskgraph &&
269
262
cd /builds/worker/checkouts/src &&
270
263
rm -rf taskcluster &&
271
264
ln -s /builds/worker/checkouts/template/taskcluster taskcluster &&
272
265
ln -s /builds/worker/artifacts artifacts &&
273
266
~/.local/bin/taskgraph action-callback
274
267
else : >
275
- PIP_IGNORE_INSTALLED=0 pip install --user /builds/worker/checkouts/taskgraph &&
276
268
rm -rf taskcluster &&
277
269
ln -s /builds/worker/checkouts/template/taskcluster taskcluster &&
278
270
ln -s /builds/worker/artifacts artifacts &&
0 commit comments