---
- scm:
    name: govuk_tagging_monitor_for_nav
    scm:
      - git:
          url: git@github.com:alphagov/govuk-tagging-monitor.git
          basedir: govuk-tagging-monitor
          branches:
            - master
- job:
    name: govuk_navigation_link_analysis
    display-name: govuk-navigation-link-analysis
    project-type: freestyle
    description: |
      Monthly analysis of links displayed in the new navigation pages. The output of
      this is needed for Performance Analysts to produce reports on how the new
      navigation is performing.
    scm:
      - govuk_tagging_monitor_for_nav
    logrotate:
      numToKeep: 10
    triggers:
        - timed: 'H 0 * * MON'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd govuk-tagging-monitor
          cp ../govuk-tagging-monitor-2f614b9b92c2.json .
          export RATE_LIMIT_TOKEN="<%= @rate_limit_token -%>"
          bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
          bundle exec rake analyse:links

---
- scm:
    name: govuk_tagging_monitor_for_nav
    scm:
      - git:
          url: git@github.com:alphagov/govuk-tagging-monitor.git
          basedir: govuk-tagging-monitor
          branches:
            - master
- job:
    name: govuk_navigation_link_analysis
    display-name: govuk-navigation-link-analysis
    project-type: freestyle
    description: |
      Monthly analysis of links displayed in the new navigation pages. The output of
      this is needed for Performance Analysts to produce reports on how the new
      navigation is performing.
    scm:
      - govuk_tagging_monitor_for_nav
    logrotate:
      numToKeep: 10
    triggers:
        - timed: 'H 0 * * MON'
    builders:
      - shell: |
          #!/bin/bash
          set -eu

          cd govuk-tagging-monitor
          cp ../govuk-tagging-monitor-2f614b9b92c2.json .
          export RATE_LIMIT_TOKEN="<%= @rate_limit_token -%>"
          bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
          bundle exec rake analyse:links['https://drive.google.com/drive/folders/0B6ekrNZ58HKUc3BqT3NoblRfOUE']

Save navigation link analysis to a shared Google Drive
Save navigation link analysis to a shared Google Drive
