blob: 80f71e82d4338128d7f38a32143475565c1439b7 [file] [log] [blame]
Sergey Otpuschennikovaad1ae02020-09-11 19:33:51 +04001---
2- project:
3 name: test-jenkins-jobs
4 jobs:
5 - infra/jenkins-jobs.check
6
7- job-template:
8 name: infra.jenkins-jobs.check
9 id: infra/jenkins-jobs.check
10 project-type: pipeline
11 description: Check job definitions by Jenkins Job Builder
12 concurrent: True
13
14 properties:
15 - build-discarder:
16 days-to-keep: 14
17 - inject:
18 properties-content: |
19 K8S_CLUSTER={k8s_cluster}
20 GIT_CREDENTIALS_ID={git-credentials-id}
21 DOCKER_IMAGE={docker-dev-virtual}/mirantis/openstack-ci/jenkins-job-tests:latest
22 CI_NAME={ci_name}
23
24 triggers:
25 - gerrit:
26 server-name: '{gerrit-server}'
27 projects:
28 - project-compare-type: PLAIN
29 project-pattern: mcp-ci/jenkins-jobs
30 branches:
31 - branch-pattern: 'master'
32 file-paths:
33 - compare-type: ANT
34 pattern: 'common/*'
35 - compare-type: ANT
36 pattern: 'common/**/*'
37 - compare-type: ANT
38 pattern: 'servers/{ci_name}/*'
39 - compare-type: ANT
40 pattern: 'servers/{ci_name}/**/*'
41 trigger-on:
42 - patchset-created-event:
43 exclude-drafts: True
44 custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}'
45
46 dsl: !include-raw-escape: pipelines/test-jenkins-jobs.groovy