job {
  name 'd8a-zenyatta'
  using 'TEMPLATE-autobuild'
  scm {
    git {
      remote {
        github 'd8a/zenyatta', 'ssh', 'git-aws.internal.justin.tv'
        credentials 'git-aws-read-key'
      }
    }
  }
  steps {
    shell "rm -rf .manta/"
    shell "manta -v"
    saveDeployArtifact 'd8a/zenyatta', '.'
  }
}

job {
  name 'd8a-zenyatta-deploy'
  using 'TEMPLATE-deploy'
  scm {
    git {
      remote {
        github 'd8a/zenyatta', 'ssh', 'git-aws.internal.justin.tv'
        credentials 'git-aws-read-key'
      }
    }
  }
  steps {
    shell 'courier deploy --repo d8a/zenyatta --dir /opt/twitch/zenyatta --user airflow'
  }
}
