Bug 1277228 - Create a tools/_build_base.yml to share task definitions r=franziskus
authorTim Taubert <ttaubert@mozilla.com>
Thu, 07 Jul 2016 15:33:07 +0200
changeset 12371 6ddb391c1eab0e87ff5f3d1fccc068b94956ec0a
parent 12370 1f8528ccbba4b0f754132257cbbbb751670c36a3
child 12372 43c56289ee6543e0118ea8a37cb4bc0a59916ca3
push id1384
push userttaubert@mozilla.com
push dateFri, 08 Jul 2016 07:51:30 +0000
reviewersfranziskus
bugs1277228
Bug 1277228 - Create a tools/_build_base.yml to share task definitions r=franziskus
automation/taskcluster/graph/tools/_build_base.yml
automation/taskcluster/graph/tools/clang-format.yml
automation/taskcluster/graph/tools/scan-build.yml
new file mode 100644
--- /dev/null
+++ b/automation/taskcluster/graph/tools/_build_base.yml
@@ -0,0 +1,28 @@
+---
+reruns: 0
+
+task:
+  created: !from_now 0
+  deadline: !from_now 24
+  provisionerId: aws-provisioner-v1
+  workerType: hg-worker
+  schedulerId: task-graph-scheduler
+
+  metadata:
+    owner: !env TC_OWNER
+    source: !env TC_SOURCE
+
+  payload:
+    maxRunTime: 3600
+    image: ttaubert/nss-ci:0.0.17
+
+    env:
+      NSS_HEAD_REPOSITORY: !env NSS_HEAD_REPOSITORY
+      NSS_HEAD_REVISION: !env NSS_HEAD_REVISION
+
+  extra:
+    treeherder:
+      build:
+        platform: nss-tools
+      machine:
+        platform: nss-tools
--- a/automation/taskcluster/graph/tools/clang-format.yml
+++ b/automation/taskcluster/graph/tools/clang-format.yml
@@ -1,35 +1,15 @@
 ---
-- reruns: 0
-  task:
-    created: !from_now 0
-    deadline: !from_now 24
-    provisionerId: aws-provisioner-v1
-    workerType: hg-worker
-    schedulerId: task-graph-scheduler
-
+- task:
     metadata:
-      owner: !env TC_OWNER
-      source: !env TC_SOURCE
       name: clang-format-3.8
       description: clang-format-3.8
 
     payload:
-      maxRunTime: 3600
-      image: ttaubert/nss-ci:0.0.17
-
       command:
         - "/bin/bash"
         - "-c"
         - "bin/checkout.sh && nss/automation/taskcluster/scripts/run_clang_format.sh nss/lib/ssl"
 
-      env:
-        NSS_HEAD_REPOSITORY: !env NSS_HEAD_REPOSITORY
-        NSS_HEAD_REVISION: !env NSS_HEAD_REVISION
-
     extra:
       treeherder:
-        build:
-          platform: nss-tools
-        machine:
-          platform: nss-tools
         symbol: clang-format-3.8
--- a/automation/taskcluster/graph/tools/scan-build.yml
+++ b/automation/taskcluster/graph/tools/scan-build.yml
@@ -1,45 +1,27 @@
 ---
-- reruns: 0
-  task:
-    created: !from_now 0
-    deadline: !from_now 24
-    provisionerId: aws-provisioner-v1
-    workerType: hg-worker
-    schedulerId: task-graph-scheduler
-
+- task:
     metadata:
-      owner: !env TC_OWNER
-      source: !env TC_SOURCE
-      name: scan-build
-      description: scan-build
+      name: scan-build-3.8
+      description: scan-build-3.8
 
     payload:
-      maxRunTime: 3600
-      image: ttaubert/nss-ci:0.0.17
-
       artifacts:
         public:
           type: directory
           path: /home/worker/artifacts
           expires: !from_now 24
 
       command:
         - "/bin/bash"
         - "-c"
         - "bin/checkout.sh && nss/automation/taskcluster/scripts/run_scan_build.sh"
 
       env:
-        NSS_HEAD_REPOSITORY: !env NSS_HEAD_REPOSITORY
-        NSS_HEAD_REVISION: !env NSS_HEAD_REVISION
         GCC_VERSION: clang
         GXX_VERSION: clang++
         NSS_ENABLE_TLS_1_3: 1
         USE_64: 1
 
     extra:
       treeherder:
-        build:
-          platform: nss-tools
-        machine:
-          platform: nss-tools
         symbol: scan-build-3.8