---
- job:
    name: noobaa-core_build-sanity
    project-type: pipeline
    concurrent: true
    parameters:
      - hidden:
          name: GIT_REPO
          default: https://github.com/noobaa/noobaa-core
          description: The git repo url
    properties:
      - github:
          url: https://github.com/noobaa/noobaa-core
      - build-discarder:
          days-to-keep: 7
          artifact-days-to-keep: 7
    pipeline-scm:
      scm:
        - git:
            name: origin
            url: $GIT_REPO
            refspec: "+refs/pull/${ghprbPullId}/head:refs/remotes/origin/pr/${ghprbPullId}/head"
            branches:
              - origin/pr/${ghprbPullId}/head
      script-path: .jenkins/build-sanity.groovy
      lightweight-checkout: true
    triggers:
      - github-pull-request:
          status-context: ci/centos/build-sanity
          trigger-phrase: "/(re)?test ((all)|(ci/centos/build-sanity))"
          only-trigger-phrase: true
          status-url: $RUN_DISPLAY_URL
          permit-all: true
          github-hooks: true
          admin-list:
            - liranmauda
          org-list:
            - noobaa
