Bug 1478883 - Tagging operations should use DONTBUILD in commit message r?Callek draft
authorrahul-shiv <rahul.shivaprasad@gmail.com>
Sat, 28 Jul 2018 02:12:59 +0530
changeset 823806 d1f31c69c8b7c6393ddaa22ff375c0dc5143c199
parent 823638 35a17ebc4ee64460cdac22d3fb2a57e1215e9b0f
push id117790
push userCallek@gmail.com
push dateSat, 28 Jul 2018 16:38:49 +0000
reviewersCallek
bugs1478883
milestone63.0a1
Bug 1478883 - Tagging operations should use DONTBUILD in commit message r?Callek MozReview-Commit-ID: 6QBQG3m907I
taskcluster/ci/release-early-tagging/kind.yml
taskcluster/taskgraph/transforms/task.py
--- a/taskcluster/ci/release-early-tagging/kind.yml
+++ b/taskcluster/ci/release-early-tagging/kind.yml
@@ -19,16 +19,17 @@ job-defaults:
             maple: scriptworker-prov-v1/treescript-v1
             birch: scriptworker-prov-v1/treescript-v1
             jamun: scriptworker-prov-v1/treescript-v1
             default: scriptworker-prov-v1/treescript-dev
     worker:
         implementation: treescript
         tags: ['buildN']
         bump: false
+        dontbuild: true
         push:
             by-project:
                 mozilla-beta: true
                 mozilla-release: true
                 mozilla-esr52: true
                 mozilla-esr60: true
                 maple: true
                 birch: true
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -582,16 +582,17 @@ task_description_schema = Schema({
         Required('implementation'): 'shipit-shipped',
         Required('release-name'): basestring,
     }, {
         Required('implementation'): 'treescript',
         Required('tags'): [Any('buildN', 'release', None)],
         Required('bump'): bool,
         Optional('bump-files'): [basestring],
         Optional('repo-param-prefix'): basestring,
+        Optional('dontbuild'): bool,
         Required('force-dry-run', default=True): bool,
         Required('push', default=False): bool
     }),
 })
 
 TC_TREEHERDER_SCHEMA_URL = 'https://github.com/taskcluster/taskcluster-treeherder/' \
                            'blob/master/schemas/task-treeherder-config.yml'
 
@@ -1210,16 +1211,19 @@ def build_treescript_payload(config, tas
         task_def['scopes'].append(add_scope_prefix(config, 'treescript:action:version_bump'))
 
     if worker['push']:
         task_def['scopes'].append(add_scope_prefix(config, 'treescript:action:push'))
 
     if worker.get('force-dry-run'):
         task_def['payload']['dry_run'] = True
 
+    if worker.get('dontbuild'):
+        task_def['payload']['dont_build'] = True
+
 
 @payload_builder('invalid')
 def build_invalid_payload(config, task, task_def):
     task_def['payload'] = 'invalid task - should never be created'
 
 
 @payload_builder('always-optimized')
 def build_always_optimized_payload(config, task, task_def):