freeStyleJob('d8a-cohesion_follows-migrations') {
  using 'TEMPLATE-autobuild'
  scm {
    git {
      remote {
        github 'd8a/cohesion_follows-migrations', 'ssh', 'git-aws.internal.justin.tv'
        credentials 'git-aws-read-key'
      }
      clean true
    }
  }
  steps {
    saveDeployArtifact 'd8a/cohesion_follows-migrations', '.'
  }
}

freeStyleJob('d8a-cohesion_follows-migrations-deploy') {
  using 'TEMPLATE-deploy-aws'
  steps {
    shell 'courier deploy --skip-restart --repo d8a/cohesion_follows-migrations --dir /opt/twitch/migrations/cohesion_follows'
  }
}
