f15154ee84aee9bd344a6d263da4d3afa00adcfc
[icn.git] / ci / jjb / akraino-icn-templates.yaml
1 ---
2 - job-template:
3     id: icn-stream-vagrant-verify-target
4     name: 'icn-{stream}-vagrant-verify-{target}'
5     defaults: icn
6     archive-artifacts: >
7       **/*.log
8     build-days-to-keep: 30
9     build-timeout: 60
10     stream: master
11     target: verifier
12     project-type: freestyle
13     submodule-recursive: true
14     #node: '{build-node}'
15
16     properties:
17       - lf-infra-properties:
18           build-days-to-keep: '{build-days-to-keep}'
19
20     parameters:
21       - lf-infra-parameters:
22           project: '{project}'
23           stream: '{stream}'
24           branch: '{branch}'
25           lftools-version: '{lftools-version}'
26
27       - string:
28           name: ARCHIVE_ARTIFACTS
29           default: '{archive-artifacts}'
30           description: Artifacts to archive to the logs server.
31
32       - string:
33           name: NEXUS_LOG_SUBDIR
34           default: '{nexus_log_subdir}'
35           description: Organization sub dir on Akraino Nexus server.
36
37     wrappers:
38       - lf-infra-wrappers:
39           build-timeout: '{build-timeout}'
40           jenkins-ssh-credential: '{jenkins-ssh-credential}'
41
42     scm:
43       - lf-infra-gerrit-scm:
44           jenkins-ssh-credential: '{jenkins-ssh-credential}'
45           git-url: '{git-url}/{project}.git'
46           refspec: '$GERRIT_REFSPEC'
47           branch: '$GERRIT_BRANCH'
48           submodule-recursive: '{submodule-recursive}'
49           submodule-timeout: '{submodule-timeout}'
50           submodule-disable: false
51           choosing-strategy: 'gerrit'
52
53     triggers:
54       - timed: "@midnight"
55
56     builders:
57       - shell: !include-raw:
58           - shell/vagrant-verify.sh
59
60     publishers:
61       - postbuildscript:
62           builders:
63             - role: BOTH
64               build-on:
65                 - ABORTED
66                 - FAILURE
67                 - NOT_BUILT
68                 - SUCCESS
69                 - UNSTABLE
70               build-steps:
71                 # all files should be owned by jenkins, for cleanup
72                 - shell: 'sudo chown jenkins -R .'
73       - icn-infra-publish
74 #      - email:
75 #          recipients: icn.jenkins@intel.com
76
77 - job-template:
78     id: icn-stream-bm-verify-target
79     name: 'icn-{stream}-bm-verify-{target}'
80     defaults: icn
81     archive-artifacts: >
82       **/*.log
83     build-days-to-keep: 30
84     build-timeout: 60
85     stream: master
86     target: verifier
87     project-type: freestyle
88     submodule-recursive: true
89     #node: '{build-node}'
90
91     properties:
92       - lf-infra-properties:
93           build-days-to-keep: '{build-days-to-keep}'
94
95     parameters:
96       - lf-infra-parameters:
97           project: '{project}'
98           stream: '{stream}'
99           branch: '{branch}'
100           lftools-version: '{lftools-version}'
101
102       - string:
103           name: ARCHIVE_ARTIFACTS
104           default: '{archive-artifacts}'
105           description: Artifacts to archive to the logs server.
106
107       - string:
108           name: NEXUS_LOG_SUBDIR
109           default: '{nexus_log_subdir}'
110           description: Organization sub dir on Akraino Nexus server.
111
112     wrappers:
113       - lf-infra-wrappers:
114           build-timeout: '{build-timeout}'
115           jenkins-ssh-credential: '{jenkins-ssh-credential}'
116
117     scm:
118       - lf-infra-gerrit-scm:
119           jenkins-ssh-credential: '{jenkins-ssh-credential}'
120           git-url: '{git-url}/{project}.git'
121           refspec: '$GERRIT_REFSPEC'
122           branch: '$GERRIT_BRANCH'
123           submodule-recursive: '{submodule-recursive}'
124           submodule-timeout: '{submodule-timeout}'
125           submodule-disable: false
126           choosing-strategy: 'gerrit'
127
128     triggers:
129       - timed: "@midnight"
130
131     builders:
132       - shell: !include-raw:
133           - shell/bm-verify.sh
134
135     publishers:
136       - postbuildscript:
137           builders:
138             - role: BOTH
139               build-on:
140                 - ABORTED
141                 - FAILURE
142                 - NOT_BUILT
143                 - SUCCESS
144                 - UNSTABLE
145               build-steps:
146                 # all files should be owned by jenkins, for cleanup
147                 - shell: 'sudo chown jenkins -R .'
148       - icn-infra-publish
149 #      - email:
150 #          recipients: icn.jenkins@intel.com
151