X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fakraino-templates%2Fakraino-rec-templates.yaml;fp=jjb%2Fakraino-templates%2Fakraino-rec-templates.yaml;h=6b26659ffde32a02454e8e7c93fad749b5a58b15;hp=0000000000000000000000000000000000000000;hb=9c21f944a759345273e43bc97f219498e3c408bc;hpb=94fade00a59bad93684e419cb5fd12261d0fbd2f diff --git a/jjb/akraino-templates/akraino-rec-templates.yaml b/jjb/akraino-templates/akraino-rec-templates.yaml new file mode 100644 index 0000000..6b26659 --- /dev/null +++ b/jjb/akraino-templates/akraino-rec-templates.yaml @@ -0,0 +1,78 @@ +--- +- job-template: + id: akraino-rec-deploy + name: 'rec-{slave-label}-{job-frequency}-{stream}' + disabled: '{obj:disabled}' + concurrent: false + node: '{slave-label}' + properties: + - throttle: + enabled: true + max-total: 4 + max-per-node: 1 + option: 'project' + + wrappers: + - build-name: + name: '$BUILD_NUMBER - Install REC Blueprint' + + triggers: + - 'rec-{job-frequency}-{stream}-trigger' + + parameters: + - lf-infra-parameters: + project: '{project}' + stream: '{stream}' + branch: '{branch}' + - '{project}-{slave-label}-defaults' + + builders: + - description-setter: + description: "SLAVE: $NODE_NAME" + - trigger-builds: + - project: 'rec-{slave-label}-install-rec-{job-frequency}-{stream}' + current-parameters: true + same-node: true + block: true + + publishers: &rec-publishers + - email: + recipients: armband@enea.com + - lf-infra-publish + +- job-template: + id: akraino-rec-install-rec + name: 'rec-{slave-label}-install-rec-{job-frequency}-{stream}' + concurrent: true + node: '{slave-label}' + properties: + - throttle: + enabled: true + max-total: 4 + max-per-node: 1 + option: 'project' + + parameters: + - lf-infra-parameters: + project: '{project}' + stream: '{stream}' + branch: '{branch}' + - '{project}-{slave-label}-defaults' + + scm: + - ta-lf-infra-gerrit-scm: + jenkins-ssh-credential: '{jenkins-ssh-credential}' + git-url: '{git-url}/ta/remote-installer.git' + branch: '{branch}' + submodule-recursive: false + submodule-timeout: 10 + choosing-strategy: 'gerrit' + basedir: 'git/remote-installer' + refspec: '$SCM_REFSPEC_REMOTE_INSTALLER' + builders: + - description-setter: + description: "SLAVE: $NODE_NAME" + - shell: !include-raw-escape: + - ../shell/ta-install.sh + + publishers: *rec-publishers