+---
+# this job gets triggered when a change is merged in cicd/jjb
+# the updates to the jobs are deployed to jenkins using jenkins-jobs update command
+# result will be send to Gerrit in the form of a comment
+- project:
+
+ name: infra-jjb-merge
+
+ project: infra/cicd
+
+ stream:
+ - master:
+ branch: '{stream}'
+
+ jobs:
+ - infra-jjb-merge-{stream}
+
+
+- job-template:
+ name: infra-jjb-merge-{stream}
+
+ node: ubuntu1804
+
+ disabled: false
+
+ concurrent: false
+
+ parameters:
+ - infra-parameters
+ - project-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ - nordix-gerrit-parameters
+
+ scm:
+ - git-scm:
+ branch: '{branch}'
+ refspec: ''
+
+ triggers:
+ - nordix-gerrit-trigger-change-merged:
+ project: '{project}'
+ branch: '{branch}'
+ files: 'jjb/**'
+
+ wrappers:
+ - nordixinfra-jjb-creds-wrapper
+
+ builders:
+ - shell:
+ !include-raw-escape: ./jjb-merge.sh