$inherits:
  from: 'tasks/builds/b2g_phone_base.yml'
  variables:
    build_name: 'flame-kk'
    build_type: 'debug'
task:
  workerType: flame-kk
  scopes:
    - 'docker-worker:cache:level-{{level}}-{{project}}-build-flame-kk-debug'
    - 'docker-worker:cache:level-{{level}}-{{project}}-build-flame-kk-debug-objdir-gecko'
  metadata:
    name: '[TC] B2G Flame KK Debug'

  payload:
    cache:
      level-{{level}}-{{project}}-build-flame-kk-debug: /home/worker/workspace
      level-{{level}}-{{project}}-build-flame-kk-debug-objdir-gecko: /home/worker/objdir-gecko
    env:
      TARGET: 'flame-kk'
      DEBUG: 0
      VARIANT: userdebug
    command:
      - >
        checkout-gecko workspace &&
        cd ./workspace/gecko/testing/taskcluster/scripts/phone-builder &&
        buildbot_step 'Build' ./build-phone.sh $HOME/workspace
  extra:
    treeherderEnv:
      - production
      - staging
    treeherder:
      symbol: B
      groupSymbol: Flame-KK
      groupName: Flame KitKat Device Image
      machine:
        platform: b2g-device-image
      collection:
        debug: true
    locations:
      img: 'private/build/flame-kk.zip'
