testing/taskcluster/tasks/phone_build.yml
author jlal@mozilla.com
Mon, 09 Feb 2015 21:53:26 -0800
changeset 228286 0e2316747aafdb02cd2c852b0cf9215ddc12313f
parent 225803 841090d00f41196c579b9f8dad8549e4c83c3847
child 229335 df1993bca8984821c482c7f7f954a013d434aacc
permissions -rw-r--r--
Bug 1130683 - Use stable owner name which will never fail r=garndt

# This is the "base" task which contains the common values all builds must
# provide.
---
taskId: {{build_slugid}}

task:
  created: '{{now}}'
  deadline: '{{#from_now}}24 hours{{/from_now}}'
  metadata:
    source: http://todo.com/soon
    owner: mozilla-taskcluster-maintenance@mozilla.com
  tags:
    createdForUser: {{owner}}

  workerType: b2gbuild
  provisionerId: aws-provisioner

  scopes:
    # Nearly all of our build tasks use tc-vcs so just include the scope across
    # the board.
    - 'docker-worker:cache:tc-vcs'
    - 'docker-worker:image:{{#docker_image}}phone-builder{{/docker_image}}'

  payload:
    image: '{{#docker_image}}phone-builder{{/docker_image}}'

    # One hour is a good value for most builds
    maxRunTime: 3600

    cache:
      tc-vcs: '/home/worker/.tc-vcs'

    # All builds share a common artifact directory for ease of uploading.
    artifacts:
      'private/build':
        type: directory
        path: '/home/worker/artifacts/'
        expires: '{{#from_now}}1 year{{/from_now}}'


    env:
      # Common environment variables for checking out gecko
      GECKO_BASE_REPOSITORY: '{{base_repository}}'
      GECKO_HEAD_REPOSITORY: '{{head_repository}}'
      GECKO_HEAD_REV: '{{head_rev}}'
      GECKO_HEAD_REF: '{{head_ref}}'
      MOZHARNESS_REPOSITORY: '{{mozharness_repository}}'
      MOZHARNESS_REV: '{{mozharness_rev}}'

  extra:
    treeherder:
      symbol: B