---
- job:
    name: whitehall_update_integration_data
    display-name: whitehall_update_integration_data
    project-type: freestyle
    description: 'Copies down latest sanitised backup from production'
    logrotate:
        artifactNumToKeep: 10
    builders:
        - shell: |
            export WHITEHALL_MYSQL_PASSWORD="<%= @whitehall_mysql_password -%>"
            ./whitehall/update-data.sh
    triggers:
        - timed: '45 6 * * *'

---
- scm:
    name: env-sync-and-backup_whitehall_update_integration_data
    scm:
        - git:
            url: git@github.gds:gds/env-sync-and-backup.git
            branches:
              - master

- job:
    name: whitehall_update_integration_data
    display-name: whitehall_update_integration_data
    project-type: freestyle
    description: 'Copies down latest sanitised backup from production'
    scm:
      - env-sync-and-backup_whitehall_update_integration_data
    logrotate:
        artifactNumToKeep: 10
    builders:
        - shell: |
            export WHITEHALL_MYSQL_PASSWORD="<%= @whitehall_mysql_password -%>"
            ./whitehall/update-data.sh
    triggers:
        - timed: '45 6 * * *'

Add source control option to whitehall Jenkins job
Add source control option to whitehall Jenkins job

This job can't run without knowing where to get its code from.
