---
- scm:
    name: build_fpm_package
    scm:
        - git:
            url: git@github.com:alphagov/packager.git
            branches:
              - master

- job:
    name: build_fpm_package
    display-name: Build fpm package
    project-type: freestyle
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
        - github:
            url: https://github.com/alphagov/packager/
    scm:
      - build_fpm_package
    parameters:
        - string:
            name: RECIPE
            description: The name of an fpm-cookery recipe
        - string:
            name: DISTRO
            description: Ubuntu distribution to target (trusty, xenial)
            default: trusty
    builders:
        - shell: |
            cd fpm/
            ./container-build.sh
    publishers:
        - archive:
            artifacts: 'build/*.deb'

---
- scm:
    name: build_fpm_package
    scm:
        - git:
            url: https://github.com/alphagov/packager
            branches:
              - master

- job:
    name: build_fpm_package
    display-name: Build fpm package
    project-type: freestyle
    properties:
        - build-discarder:
            days-to-keep: 30
            artifact-num-to-keep: 5
        - github:
            url: https://github.com/alphagov/packager/
    scm:
      - build_fpm_package
    parameters:
        - string:
            name: RECIPE
            description: The name of an fpm-cookery recipe
        - string:
            name: DISTRO
            description: Ubuntu distribution to target (trusty, xenial)
            default: trusty
    builders:
        - shell: |
            cd fpm/
            ./container-build.sh
    publishers:
        - archive:
            artifacts: 'build/*.deb'

Clone alphagov/packager over https not ssh
Clone alphagov/packager over https not ssh

The build_fpm_package job was failing due to Jenkins being unable to
authenticate to Github over SSH. As alphagov/packager is a public repo,
just clone it over HTTPS.
