---
- scm:
    name: smokey_Smokey_Deploy
    scm:
        - git:
            url: git@github.com:alphagov/smokey.git
            branches:
              - master

- job:
    name: Smokey_Deploy
    display-name: Smokey_Deploy
    project-type: freestyle
    properties:
        - github:
            url: https://github.com/alphagov/smokey/
    scm:
      - smokey_Smokey_Deploy
    builders:
        - shell: |
            export DEPLOY_TO=monitoring-1
            sh -x deploy.sh
    triggers:
        - timed: 'H 9 * * *'

---
- scm:
    name: smokey_Smokey_Deploy
    scm:
        - git:
            url: git@github.com:alphagov/smokey.git
            branches:
              - master

- job:
    name: Smokey_Deploy
    display-name: Smokey_Deploy
    project-type: freestyle
    properties:
        - github:
            url: https://github.com/alphagov/smokey/
    scm:
      - smokey_Smokey_Deploy
    builders:
        - shell: |
            <%- if scope.lookupvar('::aws_migration') %>
            export DEPLOY_TO=$(govuk_node_list -c monitoring)
            <%- else %>
            export DEPLOY_TO=monitoring-1
            <%- end %>
            sh -x deploy.sh
    triggers:
        - timed: 'H 9 * * *'

Update Smokey deploy job for AWS
Update Smokey deploy job for AWS

In AWS we need to find the monitoring box to deploy to as the hostname
is not hardcoded.
