bug 1423081 - release-notify email updates. r=callek
MozReview-Commit-ID: JwjZjyZ3DPe
--- a/taskcluster/ci/release-notify-promote/kind.yml
+++ b/taskcluster/ci/release-notify-promote/kind.yml
@@ -8,51 +8,59 @@ transforms:
- taskgraph.transforms.release_deps:transforms
- taskgraph.transforms.task:transforms
kind-dependencies:
- beetmover-checksums
- release-bouncer-sub
job-defaults:
+ name: notify-release-drivers-promote
+ description: Sends email to release-drivers telling release was promoted.
+ run-on-projects: []
shipping-phase: promote
+ worker-type: aws-provisioner-v1/gecko-{level}-b-linux
+ worker:
+ implementation: docker-worker
+ os: linux
+ docker-image: "ubuntu:16.10"
+ max-run-time: 600
+ command:
+ - /bin/bash
+ - -c
+ - echo "Dummy task"
+ notifications:
+ completed:
+ subject: "{task[shipping-product]} {release_config[version]} build{release_config[build_number]}/{config[params][project]} is in the candidates directory"
+ message: "{task[shipping-product]} {release_config[version]} build{release_config[build_number]}/{config[params][project]} is in the candidates directory"
+ plugins: ["ses"]
+ emails:
+ by-project:
+ mozilla-beta: ["release-signoff@mozilla.org"]
+ mozilla-release: ["release-signoff@mozilla.org"]
+ try: ["{task_def[metadata][owner]}"]
+ maple: ["release+tcstaging@mozilla.com"]
+ default: []
+ routes:
+ - index.releases.v1.{branch}.{revision}.{product}.{underscore_version}.build{build_number}.email-{channel}
+ - index.releases.v1.{branch}.latest.{product}.latest.email-{channel}
+ index:
+ type: release
+ channel:
+ by-project:
+ mozilla-beta: beta-candidates
+ mozilla-release: release-candidates
+ maple: maple-candidates
+ default: unknown
jobs:
fennec:
- name: notify-release-drivers-promote
- description: Sends email to release-drivers telling release was promoted.
- run-on-projects: []
shipping-product: fennec
- worker-type: aws-provisioner-v1/gecko-{level}-b-linux
- worker:
- implementation: docker-worker
- os: linux
- docker-image: "ubuntu:16.10"
- max-run-time: 600
- command:
- - /bin/bash
- - -c
- - echo "Dummy task"
- notifications:
- completed:
- subject: "{config[params][project]} {release_config[version]} build{release_config[build_number]} is in the candidates directory"
- message: "{config[params][project]} {release_config[version]} build{release_config[build_number]} is in the candidates directory"
- ids:
- by-project:
- maple:
- - "release-drivers-staging"
- try:
- # - "{task[tags][createdForUser]}"
- default:
- - "release-drivers"
- routes:
- - index.releases.v1.{branch}.{revision}.{product}.{underscore_version}.build{build_number}.email-{channel}
- - index.releases.v1.{branch}.latest.{product}.latest.email-{channel}
+ index:
+ product: fennec
+ firefox:
+ shipping-product: firefox
index:
- type: release
- product: fennec
- job-name: android-api-16-opt
- channel:
- by-project:
- mozilla-beta: beta-candidates
- mozilla-release: release-candidates
- maple: maple-candidates
- default: unknown
+ product: firefox
+ devedition:
+ shipping-product: devedition
+ index:
+ product: devedition
deleted file mode 100644
--- a/taskcluster/ci/release-notify-publish/kind.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-loader: taskgraph.loader.transform:loader
-
-transforms:
- - taskgraph.transforms.release_deps:transforms
- - taskgraph.transforms.task:transforms
-
-kind-dependencies:
- - push-apk
- - release-bouncer-aliases
- - release-version-bump
-
-job-defaults:
- shipping-phase: ship
-
-jobs:
- fennec:
- name: notify-release-drivers-publish
- description: Sends email to release-drivers telling release was published.
- run-on-projects: []
- shipping-product: fennec
- worker-type: aws-provisioner-v1/gecko-{level}-b-linux
- worker:
- implementation: docker-worker
- os: linux
- docker-image: "ubuntu:16.10"
- max-run-time: 600
- command:
- - /bin/bash
- - -c
- - echo "Dummy task"
- notifications:
- completed:
- subject: "{config[params][project]} {release_config[version]} build{release_config[build_number]} has been published to Google Play"
- message: "{config[params][project]} {release_config[version]} build{release_config[build_number]} has been published to Google Play"
- ids:
- by-project:
- maple:
- - "release-drivers-staging"
- try:
- # - "{task[tags][createdForUser]}"
- default:
- - "release-drivers"
- routes:
- - index.releases.v1.{branch}.{revision}.{product}.{underscore_version}.build{build_number}.email-{channel}
- - index.releases.v1.{branch}.latest.{product}.latest.email-{channel}
- index:
- type: release
- product: fennec
- job-name: android-api-16-opt
- channel:
- by-project:
- mozilla-beta: beta
- mozilla-release: release
- maple: maple
- default: unknown
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/release-notify-ship/kind.yml
@@ -0,0 +1,68 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+loader: taskgraph.loader.transform:loader
+
+transforms:
+ - taskgraph.transforms.release_deps:transforms
+ - taskgraph.transforms.task:transforms
+
+kind-dependencies:
+ - push-apk
+ - release-bouncer-aliases
+ - release-version-bump
+ - release-mark-as-shipped
+
+job-defaults:
+ name: notify-release-drivers-ship
+ description: Sends email to release-drivers telling release was shipped.
+ run-on-projects: []
+ shipping-phase: ship
+ worker-type: aws-provisioner-v1/gecko-{level}-b-linux
+ worker:
+ implementation: docker-worker
+ os: linux
+ docker-image: "ubuntu:16.10"
+ max-run-time: 600
+ command:
+ - /bin/bash
+ - -c
+ - echo "Dummy task"
+ notifications:
+ completed:
+ subject: "{task[shipping-product]} {release_config[version]} build{release_config[build_number]}/{config[params][project]} has shipped!"
+ message: "{task[shipping-product]} {release_config[version]} build{release_config[build_number]}/{config[params][project]} has shipped!"
+ plugins: ["ses"]
+ emails:
+ by-project:
+ mozilla-beta: ["release-signoff@mozilla.org"]
+ mozilla-release: ["release-signoff@mozilla.org"]
+ try: ["{task_def[metadata][owner]}"]
+ maple: ["release+tcstaging@mozilla.com"]
+ default: []
+ routes:
+ - index.releases.v1.{branch}.{revision}.{product}.{underscore_version}.build{build_number}.email-{channel}
+ - index.releases.v1.{branch}.latest.{product}.latest.email-{channel}
+ index:
+ type: release
+ channel:
+ by-project:
+ mozilla-beta: beta
+ mozilla-release: release
+ maple: maple
+ default: unknown
+
+jobs:
+ fennec:
+ shipping-product: fennec
+ index:
+ product: fennec
+ firefox:
+ shipping-product: firefox
+ index:
+ product: firefox
+ devedition:
+ shipping-product: devedition
+ index:
+ product: devedition
--- a/taskcluster/taskgraph/transforms/job/__init__.py
+++ b/taskcluster/taskgraph/transforms/job/__init__.py
@@ -57,16 +57,17 @@ job_description_schema = Schema({
Optional('tags'): task_description_schema['tags'],
Optional('extra'): task_description_schema['extra'],
Optional('notifications'): task_description_schema['notifications'],
Optional('treeherder'): task_description_schema['treeherder'],
Optional('index'): task_description_schema['index'],
Optional('run-on-projects'): task_description_schema['run-on-projects'],
Optional('shipping-phase'): task_description_schema['shipping-phase'],
Optional('shipping-product'): task_description_schema['shipping-product'],
+ Optional('notifications'): task_description_schema['notifications'],
Optional('coalesce'): task_description_schema['coalesce'],
Optional('always-target'): task_description_schema['always-target'],
Exclusive('optimization', 'optimization'): task_description_schema['optimization'],
Optional('needs-sccache'): task_description_schema['needs-sccache'],
# The "when" section contains descriptions of the circumstances under which
# this task should be included in the task graph. This will be converted
# into an optimization, so it cannot be specified in a job description that