Initial commit
Add infrastructure jobs for sandbox
Related-PROD: RE-336
Change-Id: I2140d47e3fc360ab05f92175b29b31e69b2ec10b
diff --git a/common/test-jenkins-jobs.yaml b/common/test-jenkins-jobs.yaml
new file mode 100644
index 0000000..80f71e8
--- /dev/null
+++ b/common/test-jenkins-jobs.yaml
@@ -0,0 +1,46 @@
+---
+- project:
+ name: test-jenkins-jobs
+ jobs:
+ - infra/jenkins-jobs.check
+
+- job-template:
+ name: infra.jenkins-jobs.check
+ id: infra/jenkins-jobs.check
+ project-type: pipeline
+ description: Check job definitions by Jenkins Job Builder
+ concurrent: True
+
+ properties:
+ - build-discarder:
+ days-to-keep: 14
+ - inject:
+ properties-content: |
+ K8S_CLUSTER={k8s_cluster}
+ GIT_CREDENTIALS_ID={git-credentials-id}
+ DOCKER_IMAGE={docker-dev-virtual}/mirantis/openstack-ci/jenkins-job-tests:latest
+ CI_NAME={ci_name}
+
+ triggers:
+ - gerrit:
+ server-name: '{gerrit-server}'
+ projects:
+ - project-compare-type: PLAIN
+ project-pattern: mcp-ci/jenkins-jobs
+ branches:
+ - branch-pattern: 'master'
+ file-paths:
+ - compare-type: ANT
+ pattern: 'common/*'
+ - compare-type: ANT
+ pattern: 'common/**/*'
+ - compare-type: ANT
+ pattern: 'servers/{ci_name}/*'
+ - compare-type: ANT
+ pattern: 'servers/{ci_name}/**/*'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: True
+ custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}'
+
+ dsl: !include-raw-escape: pipelines/test-jenkins-jobs.groovy