6b26659ffde32a02454e8e7c93fad749b5a58b15
[ci-management.git] / akraino-rec-templates.yaml
1 ---
2 - job-template:
3     id: akraino-rec-deploy
4     name: 'rec-{slave-label}-{job-frequency}-{stream}'
5     disabled: '{obj:disabled}'
6     concurrent: false
7     node: '{slave-label}'
8     properties:
9       - throttle:
10           enabled: true
11           max-total: 4
12           max-per-node: 1
13           option: 'project'
14
15     wrappers:
16       - build-name:
17           name: '$BUILD_NUMBER - Install REC Blueprint'
18
19     triggers:
20       - 'rec-{job-frequency}-{stream}-trigger'
21
22     parameters:
23       - lf-infra-parameters:
24           project: '{project}'
25           stream: '{stream}'
26           branch: '{branch}'
27       - '{project}-{slave-label}-defaults'
28
29     builders:
30       - description-setter:
31           description: "SLAVE: $NODE_NAME"
32       - trigger-builds:
33           - project: 'rec-{slave-label}-install-rec-{job-frequency}-{stream}'
34             current-parameters: true
35             same-node: true
36             block: true
37
38     publishers: &rec-publishers
39       - email:
40           recipients: armband@enea.com
41       - lf-infra-publish
42
43 - job-template:
44     id: akraino-rec-install-rec
45     name: 'rec-{slave-label}-install-rec-{job-frequency}-{stream}'
46     concurrent: true
47     node: '{slave-label}'
48     properties:
49       - throttle:
50           enabled: true
51           max-total: 4
52           max-per-node: 1
53           option: 'project'
54
55     parameters:
56       - lf-infra-parameters:
57           project: '{project}'
58           stream: '{stream}'
59           branch: '{branch}'
60       - '{project}-{slave-label}-defaults'
61
62     scm:
63       - ta-lf-infra-gerrit-scm:
64           jenkins-ssh-credential: '{jenkins-ssh-credential}'
65           git-url: '{git-url}/ta/remote-installer.git'
66           branch: '{branch}'
67           submodule-recursive: false
68           submodule-timeout: 10
69           choosing-strategy: 'gerrit'
70           basedir: 'git/remote-installer'
71           refspec: '$SCM_REFSPEC_REMOTE_INSTALLER'
72     builders:
73       - description-setter:
74           description: "SLAVE: $NODE_NAME"
75       - shell: !include-raw-escape:
76           - ../shell/ta-install.sh
77
78     publishers: *rec-publishers