22d81af46edf0ff028f8897e44f07948ae5a6ef8
[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           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
15
16     jobs:
17       - infra-jjb-verify-{stream}
18
19
20 - job-template:
21     name: infra-jjb-verify-{stream}
22
23     node: ubuntu1804
24
25     disabled: false
26
27     concurrent: true
28
29     parameters:
30       - infra-parameters
31       - project-parameters:
32           project: '{project}'
33           branch: '{branch}'
34       - nordix-gerrit-parameters
35
36     scm:
37       - git-scm-gerrit:
38           ssh-credentials-id: '{ssh-credentials-id}'
39           branch: '{branch}'
40           refspec: $GERRIT_REFSPEC
41
42     triggers:
43       - nordix-gerrit-trigger-patchset-created:
44           project: '{project}'
45           branch: '{branch}'
46           files: 'jjb/**'
47
48     wrappers:
49       - nordixinfra-jjb-creds-wrapper
50
51     builders:
52       - shell:
53           !include-raw-escape: ./jjb-verify.sh