X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Finfra%2Fjjb-merge-jobs.yaml;fp=jjb%2Finfra%2Fjjb-merge-jobs.yaml;h=6505fedbfb9cee2ae432c2cc1b0ed2033cb5051b;hb=9d40a69062cd1b911a892befc8ca503d4be616e9;hp=0000000000000000000000000000000000000000;hpb=352a9b1f6d7cc0617e9ce7db9bbc91b287d2c053;p=infra%2Fcicd.git diff --git a/jjb/infra/jjb-merge-jobs.yaml b/jjb/infra/jjb-merge-jobs.yaml new file mode 100644 index 000000000..6505fedbf --- /dev/null +++ b/jjb/infra/jjb-merge-jobs.yaml @@ -0,0 +1,51 @@ +--- +# 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