freeStyleJob('dta-tcs-demo') {
  using 'TEMPLATE-autobuild'
  scm {
    git {
      remote {
        github 'dta/tcs-demo', 'ssh', 'git-aws.internal.justin.tv'
        credentials 'git-aws-read-key'
      }
      clean true
    }
  }
  steps {
    shell "rm -rf .manta/"
    shell 'manta -v -f build.json'
    saveDeployArtifact 'dta/tcs-demo', '.manta'
  }
}

freeStyleJob('dta-tcs-demo-deploy') {
  using 'TEMPLATE-deploy-aws'
  steps {
    shell 'courier deploy --repo dta/tcs-demo --dir /opt/twitch/tcs-demo'
  }
}
