---
- scm:
    name: govuk_offsitebackups-puppet_Build-Offsite-Backup
    scm:
        - git:
            url: git@github.com:alphagov/govuk_offsitebackups-puppet.git
            branches:
              - vcloud
- job:
    name: Build-Offsite-Backup
    display-name: Build-Offsite-Backup
    project-type: freestyle
    description: "Deploy an off-site backup box to a specified vCloud installation by:\r\n<br
        />\r\n1) Building the box<br />\r\n2) Creating networking rules"
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
        - github:
            url: http://github.com/alphagov/govuk_offsitebackups-puppet/
    scm:
      - govuk_offsitebackups-puppet_Build-Offsite-Backup
    builders:
        - shell: |
            ./vcloud/box/carrenza/jenkins.sh
    publishers:
        - email:
            recipients: 2nd-line-support@digital.cabinet-office.gov.uk
    parameters:
        - string:
            name: VCLOUD_USER
            description: Your vCloud username. You can find this within vCloud Director.
              It may not always be self-evident.
            default: false
        - password:
            name: VCLOUD_PASS
            description: Your vCloud password.
            default: false

---
- scm:
    name: govuk_offsitebackups-puppet_Build-Offsite-Backup
    scm:
        - git:
            url: git@github.com:alphagov/govuk_offsitebackups-puppet.git
            branches:
              - vcloud
- job:
    name: Build-Offsite-Backup
    display-name: Build-Offsite-Backup
    project-type: freestyle
    description: "Deploy an off-site backup box to a specified vCloud installation by:\r\n<br
        />\r\n1) Building the box<br />\r\n2) Creating networking rules"
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
        - github:
            url: http://github.com/alphagov/govuk_offsitebackups-puppet/
    scm:
      - govuk_offsitebackups-puppet_Build-Offsite-Backup
    builders:
        - shell: |
            ./vcloud/box/carrenza/jenkins.sh
    parameters:
        - string:
            name: VCLOUD_USER
            description: Your vCloud username. You can find this within vCloud Director.
              It may not always be self-evident.
            default: false
        - password:
            name: VCLOUD_PASS
            description: Your vCloud password.
            default: false

Remove email alert for offsite backups task
Remove email alert for offsite backups task

I believe this job is only run manually, so we don't need notifications
or a Icinga alert.
