testing/taskcluster/tasks/builds/b2g_desktop.yml
author Wander Lairson Costa <wcosta@mozilla.com>
Wed, 26 Nov 2014 10:11:30 -0800
changeset 243159 7b098c2b6c2a02f7cdf583e1cf2a96e8fa678490
parent 243153 bb927ed931e07d42f1e58c684c0bafe79c95bb7b
child 243171 970df86175e147f0dced4de5bc7579a85ef0855b
permissions -rw-r--r--
Bug 1085513 part2: use nightly mozconfig for b2g desktop builds. r=lightsofapollo,garndt

taskId: {{build_slugid}}
task:
  created: '{{now}}'
  deadline: '{{#from_now}}24 hours{{/from_now}}'
  metadata:
    source: http://todo.com/soon
    owner: {{owner}}
    name: B2G Desktop Opt
    description: B2G Desktop Opt

  workerType: b2gbuild
  provisionerId: aws-provisioner

  scopes:
    - 'docker-worker:cache:sources-mozilla-central'
    - 'docker-worker:cache:sources-gaia'
    - 'docker-worker:cache:build-b2g-desktop-objects'

  payload:
    cache:
      sources-gaia: '/home/worker/gaia'
      sources-mozilla-central: '/home/worker/mozilla-central'
      build-b2g-desktop-objects: '/home/worker/object-folder'

    env:
      MOZCONFIG: '/home/worker/mozilla-central/source/b2g/config/mozconfigs/linux64_gecko/nightly'
      # revision/project params defined originally here https://github.com/taskcluster/taskcluster-try/blob/master/try/instantiate.js
      REVISION: '{{revision}}'
      REPOSITORY: '{{repository}}'

    image: '{{#docker_image}}builder{{/docker_image}}'
    maxRunTime: 3600

    command:
      - build-b2g-desktop.sh

    artifacts:
      'public/build':
        type: directory
        path: '/home/worker/artifacts/'
        expires: '{{#from_now}}1 year{{/from_now}}'

  extra:
    # Rather then enforcing particular conventions we require that all build
    # tasks provide the "build" extra field to specify where the build and tests
    # files are located.
    locations:
      build: 'public/build/target.linux-x86_64.tar.bz2'
      tests: 'public/build/target.tests.zip'

    treeherder:
      symbol: B