- job-template:
    name: '{name}-integration'
    project-type: multibranch
    periodic-folder-trigger: 5m
    number-to-keep: 30
    days-to-keep: 30
    script-path: Jenkinsfile.integration
    scm:
      - github:
          repo: '{repo-name}'
          repo-owner: '{repo-owner}'
          credentials-id: '{repo-credentials}'
          branch-discovery: no-pr
          discover-pr-forks-strategy: merge-current
          discover-pr-forks-trust: permission
          discover-pr-origin: merge-current
          submodule:
            recursive: true
          notification-context: continuous-integration/jenkins
          filter-head-regex: ^(master|release\-\d\.\d|PR\-\d+)$

- job-template:
    name: '{name}-integration'
    project-type: multibranch
    periodic-folder-trigger: 5m
    number-to-keep: 30
    days-to-keep: 30
    script-path: Jenkinsfile.integration
    scm:
      - github:
          repo: '{repo-name}'
          repo-owner: '{repo-owner}'
          credentials-id: '{repo-credentials}'
          branch-discovery: no-pr
          discover-pr-forks-strategy: current
          discover-pr-forks-trust: permission
          discover-pr-origin: current
          submodule:
            recursive: true
          notification-context: continuous-integration/jenkins
          filter-head-regex: ^(master|release\-\d\.\d|PR\-\d+)$

Change discover strategy for Pull request
socok8s: Change discover strategy for Pull request

To reduce the number of jobs that are triggered let's switch to
"current" strategy. By doing that we should prevent new jobs being
triggered for every PR when a change get's merged into master.
