569be7b7ba0269c8f6a115441439f8d033bdec30
[infra/cicd.git] / jjb / infra / jjb-merge-jobs.yaml
1 ---
2 # this job gets triggered when a change is merged in cicd/jjb
3 # the updates to the jobs are deployed to jenkins using jenkins-jobs update command
4 # result will be send to Gerrit in the form of a comment
5 - project:
6
7     name: infra-jjb-merge
8
9     project: infra/cicd
10
11     stream:
12       - master:
13           branch: '{stream}'
14
15     jobs:
16       - infra-jjb-merge-{stream}
17
18
19 - job-template:
20     name: infra-jjb-merge-{stream}
21
22     node: ubuntu1804
23
24     disabled: false
25
26     concurrent: false
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:
37           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
38           branch: '{branch}'
39           refspec: ''
40           wipe_workspace: true
41           clean_before: false
42
43     triggers:
44       - nordix-gerrit-trigger-change-merged:
45           project: '{project}'
46           branch: '{branch}'
47           files: 'jjb/**'
48
49     wrappers:
50       - nordixinfra-jjb-creds-wrapper
51
52     builders:
53       - shell:
54           !include-raw-escape: ./jjb-merge.sh