honeycomb.yaml revision 8c9f12ff
1- project:
2    name: honeycomb
3    jobs:
4        - 'honeycomb-verify-{stream}-{os}'
5        - 'honeycomb-merge-{stream}-{os}'
6        - 'honeycomb-benchmark-master'
7    project: 'honeycomb'
8    os:
9        - ubuntu1604:
10            repo-os-part: 'ubuntu.xenial.main'
11            skip-site: 'true'
12    stream:
13        - master:
14            branch: 'master'
15            repo-stream-part: 'master'
16        - '1609':
17            branch: 'stable/1609'
18            repo-stream-part: 'stable.1609'
19
20- job-template:
21    name: 'honeycomb-verify-{stream}-{os}'
22    project-type: maven
23    node: verify-{os}
24    concurrent: true
25    jdk: openjdk8-{os}
26
27    logrotate:
28        daysToKeep: '{build-days-to-keep}'
29        numToKeep: '{build-num-to-keep}'
30        artifactDaysToKeep: '{build-artifact-days-to-keep}'
31        artifactNumToKeep: '{build-artifact-num-to-keep}'
32
33    parameters:
34        - project-parameter:
35            project: '{project}'
36        - gerrit-parameter:
37            branch: '{branch}'
38        - os-parameter:
39            os: '{os}'
40
41    scm:
42        - gerrit-trigger-scm:
43            credentials-id: 'jenkins-gerrit-credentials'
44            refspec: '$GERRIT_REFSPEC'
45            choosing-strategy: 'gerrit'
46
47    wrappers:
48        - fdio-infra-wrappers:
49            build-timeout: '{build-timeout}'
50
51    triggers:
52        - gerrit-trigger-patch-submitted:
53            name: 'honeycomb'
54            branch: '{branch}'
55
56    prebuilders:
57        - shell: |
58            if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64||echo 'ignoring failure';fi
59    maven:
60        maven-name: 'mvn33'
61        root-pom: 'pom.xml'
62        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge site'
63        maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
64        settings: 'honeycomb-settings'
65        settings-type: cfp
66        global-settings: 'global-settings'
67        global-settings-type: cfp
68
69    publishers:
70        - email-notification:
71            email-prefix: '[honeycomb]'
72
73- job-template:
74    name: 'honeycomb-merge-{stream}-{os}'
75    project-type: maven
76    node: merge-{os}
77    jdk: openjdk8-{os}
78
79    logrotate:
80        daysToKeep: '{build-days-to-keep}'
81        numToKeep: '{build-num-to-keep}'
82        artifactDaysToKeep: '{build-artifact-days-to-keep}'
83        artifactNumToKeep: '{build-artifact-num-to-keep}'
84
85    parameters:
86        - project-parameter:
87            project: '{project}'
88        - os-parameter:
89            os: '{os}'
90        - maven-project-parameter:
91            maven: 'mvn33'
92        - repo-name-parameter:
93            repo-name: '{repo-stream-part}.{repo-os-part}'
94
95    scm:
96        - gerrit-trigger-scm:
97            credentials-id: 'jenkins-gerrit-credentials'
98            refspec: ''
99            choosing-strategy: 'default'
100
101    wrappers:
102        - ssh-agent-credentials:
103            users:
104                - 'jenkins-gerrit-credentials'
105        - fdio-infra-wrappers:
106            build-timeout: '{build-timeout}'
107
108    triggers:
109        - gerrit-trigger-patch-merged:
110            name: 'honeycomb'
111            branch: '{branch}'
112
113    maven:
114        maven-name: 'mvn33'
115        root-pom: 'pom.xml'
116        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Dsonar -Dmaven.site.skip={skip-site} site -Dmaven.site.deploy.skip={skip-site} site:deploy'
117        maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
118        settings: 'honeycomb-settings'
119        settings-type: cfp
120        global-settings: 'global-settings'
121        global-settings-type: cfp
122
123    postbuilders:
124        - maven-target:
125            maven-version: 'mvn33'
126            goals: '--version'
127            settings: 'honeycomb-settings'
128            settings-type: cfp
129            global-settings: 'global-settings'
130            global-settings-type: cfp
131        - provide-maven-settings:
132            settings-file: 'honeycomb-settings'
133            global-settings-file: 'global-settings'
134
135    reporters:
136        - findbugs
137
138    publishers:
139        - sonar:
140            jdk: 'openjdk8-{os}'
141            language: 'java'
142            branch: '{stream}'
143        - email-notification:
144            email-prefix: '[honeycomb]'
145        - maven-deploy:
146            id: ''
147            unique-version: true
148            deploy-unstable: false
149
150- job-template:
151    name: 'honeycomb-benchmark-master'
152    project-type: maven
153    node: verify-ubuntu1604
154    jdk: openjdk8-ubuntu1604
155
156    logrotate:
157        daysToKeep: '{build-days-to-keep}'
158        numToKeep: '{build-num-to-keep}'
159        artifactDaysToKeep: '{build-artifact-days-to-keep}'
160        artifactNumToKeep: '{build-artifact-num-to-keep}'
161
162    parameters:
163        - project-parameter:
164            project: '{project}'
165        - os-parameter:
166            os: 'ubuntu1604'
167        - maven-project-parameter:
168            maven: 'mvn33'
169        - repo-name-parameter:
170            repo-name: 'master.ubuntu.xenial.main'
171
172    scm:
173        - git-scm:
174            credentials-id: 'jenkins-gerrit-credentials'
175            branch: 'master'
176
177    wrappers:
178        - ssh-agent-credentials:
179            users:
180                - 'jenkins-gerrit-credentials'
181        - fdio-infra-wrappers:
182            build-timeout: '{build-timeout}'
183
184    triggers:
185        - timed: '@daily'
186
187    maven:
188        maven-name: 'mvn33'
189        root-pom: 'pom.xml'
190        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Pbenchmark'
191        maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
192        settings: 'honeycomb-settings'
193        settings-type: cfp
194        global-settings: 'global-settings'
195        global-settings-type: cfp
196
197    publishers:
198        - plot:
199            - title: 'Infrastructure CFG write benchmark'
200              yaxis: 'ops/second'
201              csv-file-name: 'benchmark.csv'
202              group: 'infra-bench'
203              keep-records: true
204              numbuilds: '20'
205              style: 'line'
206              use-description: false
207              series:
208                - file: 'infra/it/benchmark/target/benchmark.csv'
209                  display-table: true
210                  format: 'csv'
211                  inclusion-flag: 'include-by-string'
212                  exclude: 'Score'
213