---
- scm:
    name: tagging-migration-verifier
    scm:
        - git:
            url: git@github.com:alphagov/tagging-migration-verifier.git
            branches:
              - master

- job:
    name: tagging-migration-verifier
    display-name: TaggingMigrationCheck
    project-type: freestyle
    description: "This job checks if taggings are in sync between contentapi and content-store"
    scm:
      - tagging-migration-verifier
    logrotate:
        artifactNumToKeep: 100
    triggers:
        - timed: '0 * * * *' # every hour
    builders:
        - shell: |
            bin/verify_migrated_apps
    publishers:
      - trigger-parameterized-builds:
        - project: Success_Passive_Check
          condition: 'SUCCESS'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description -%>
            NSCA_OUTPUT=<%= @service_description -%> success
        - project: Failure_Passive_Check
          condition: 'FAILED'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description -%>
            NSCA_OUTPUT=<%= @service_description -%> failed
    wrappers:
        - ansicolor:
            colormap: xterm

---
- scm:
    name: tagging-migration-verifier
    scm:
        - git:
            url: git@github.com:alphagov/tagging-migration-verifier.git
            branches:
              - master

- job:
    name: tagging-migration-verifier
    display-name: TaggingMigrationCheck
    project-type: freestyle
    description: "This job checks if taggings are in sync between contentapi and content-store"
    scm:
      - tagging-migration-verifier
    logrotate:
        artifactNumToKeep: 100
    triggers:
        - timed: '0 * * * *' # every hour
    builders:
        - shell: |
            bin/verify_migrated_apps
    publishers:
      - trigger-parameterized-builds:
        - project: Success_Passive_Check
          condition: 'SUCCESS'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description %>
            NSCA_OUTPUT=<%= @service_description %> success
        - project: Failure_Passive_Check
          condition: 'FAILED'
          predefined-parameters: |
            NSCA_CHECK_DESCRIPTION=<%= @service_description %>
            NSCA_OUTPUT=<%= @service_description %> failed
    wrappers:
        - ansicolor:
            colormap: xterm

Remove the removal of white space.
Remove the removal of white space.

The parameters passed to the passive check jobs need to be on separate
lines for it to work properly. The - at the end of an erb statement
strips white space therefore removing the newline.
