---
- project:
    name: Osmocom-release-manuals
    jobs:
      - Osmocom-release-manuals

- job:
    name: 'Osmocom-release-manuals'
    node: osmocom-master
    project-type: freestyle
    defaults: global
    description: |
        Build manuals for all new Osmocom releases
        (<a href="https://osmocom.org/issues/5902">OS#5902</a>).
    properties:
      - build-discarder:
          days-to-keep: 30
          num-to-keep: 30
    parameters:
      - string:
          name: BRANCH_CI
          description: |
                osmo-ci.git branch
          default: 'master'
    builders:
      - shell: |
          scripts/manuals/publish-manuals-for-tags.sh
    scm:
      - git:
          branches:
            - '$BRANCH_CI'
          url: https://gerrit.osmocom.org/osmo-ci
          git-config-name: 'Jenkins Builder'
          git-config-email: 'jenkins@osmocom.org'
          wipe-workspace: true
    triggers:
      - timed: "H 04 * * *"
    publishers:
       - email:
          notify-every-unstable-build: true
          recipients: 'jenkins-notifications@lists.osmocom.org'
    wrappers:
      - ssh-agent-credentials:
          users:
          - docs_ftp.osmocom.org
