OPENDEV: Add patchset-created trigger for push upstream jenkins job.
[infra/cicd.git] / jjb / infra / jjb-verify-jobs.yaml
1 ---
2 # this job gets triggered when a change is proposed to cicd/jjb
3 # the change is verified using jenkins-jobs test command
4 # result will be send to Gerrit in the form of Verified +1 or -1
5 - project:
6
7     name: infra-jjb-verify
8
9     project: infra/cicd
10
11     stream:
12       - master:
13           branch: '{stream}'
14
15     jobs:
16       - infra-jjb-verify-{stream}
17
18
19 - job-template:
20     name: infra-jjb-verify-{stream}
21
22     node: ubuntu1804
23
24     disabled: false
25
26     concurrent: true
27
28     parameters:
29       - infra-parameters
30       - project-parameters:
31           project: '{project}'
32           branch: '{branch}'
33       - nordix-gerrit-parameters
34
35     scm:
36       - git-scm-gerrit:
37           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
38           branch: '{branch}'
39           refspec: $GERRIT_REFSPEC
40
41     triggers:
42       - nordix-gerrit-trigger-patchset-created:
43           project: '{project}'
44           branch: '{branch}'
45           files: 'jjb/**'
46           skip-vote:
47             successful: false
48             failed: false
49             unstable: false
50             notbuilt: false
51
52     wrappers:
53       - nordixinfra-jjb-creds-wrapper
54
55     builders:
56       - shell:
57           !include-raw-escape: ./jjb-verify.sh