---
- job:
    name: whitehall_run_broken_link_checker
    display-name: whitehall_run_broken_link_checker
    project-type: freestyle
    description: "<p>Triggers the broken link checker rake task on whitehall-backend-1.</p>"
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
      - trigger-builds:
          - project: automated-rake-task
            block: true
            predefined-parameters: |
              TARGET_APPLICATION=whitehall
              MACHINE_CLASS=whitehall_backend
              RAKE_TASK='generate_broken_link_reports[/tmp/bad_link_reports,save-x7QZmKs2eDkK@3.basecamp.com]'
    triggers:
        - timed: |
            TZ=Europe/London
            0 2 1 * *
    wrappers:
        - ansicolor:
            colormap: xterm
    publishers:
        - trigger-parameterized-builds:
            - project: success_passive_check
              condition: 'SUCCESS'
              predefined-parameters: |
                  NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                  NSCA_OUTPUT=<%= @service_description %> successful
            - project: failure_passive_check
              condition: 'FAILED'
              predefined-parameters: |
                  NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                  NSCA_OUTPUT=<%= @service_description %> failed
    logrotate:
        numToKeep: 10

---
- job:
    name: whitehall_run_broken_link_checker
    display-name: whitehall_run_broken_link_checker
    project-type: freestyle
    description: "<p>Triggers the broken link checker rake task on whitehall-backend-1.</p>"
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    builders:
      - trigger-builds:
          - project: automated-rake-task
            block: true
            predefined-parameters: |
              TARGET_APPLICATION=whitehall
              MACHINE_CLASS=whitehall_backend
              RAKE_TASK='generate_broken_link_reports[/tmp/bad_link_reports,save-x7QZmKs2eDkK@3.basecamp.com]'
    wrappers:
        - ansicolor:
            colormap: xterm
    publishers:
        - trigger-parameterized-builds:
            - project: success_passive_check
              condition: 'SUCCESS'
              predefined-parameters: |
                  NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                  NSCA_OUTPUT=<%= @service_description %> successful
            - project: failure_passive_check
              condition: 'FAILED'
              predefined-parameters: |
                  NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                  NSCA_OUTPUT=<%= @service_description %> failed
    logrotate:
        numToKeep: 10

Remove automatic running of Whitehall Link Check report
Remove automatic running of Whitehall Link Check report

This is a report sent to publishers (on a monthly basis) that lists all
links that are marked as broken in their published content.

The GOV.UK Publishing Service team have decided to temporarily pause the
automatic sending of this report whilst improvements to its content are
made.

This removes the monthly trigger.
