honeycomb.yaml revision 08cc9f17
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: '{os}-basebuild-4c-4g'
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-new'
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: '{os}-basebuild-4c-4g'
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-new'
92        - maven-exec:
93            maven-version: 'mvn33-new'
94        - repo-name-parameter:
95            repo-name: '{repo-stream-part}.{repo-os-part}'
96
97    scm:
98        - gerrit-trigger-scm:
99            credentials-id: 'jenkins-gerrit-credentials'
100            refspec: ''
101            choosing-strategy: 'default'
102
103    wrappers:
104        - ssh-agent-credentials:
105            users:
106                - 'jenkins-gerrit-credentials'
107        - fdio-infra-wrappers:
108            build-timeout: '{build-timeout}'
109
110    triggers:
111        - gerrit-trigger-patch-merged:
112            name: 'honeycomb'
113            branch: '{branch}'
114
115    maven:
116        maven-name: 'mvn33-new'
117        root-pom: 'pom.xml'
118        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'
119        maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
120        settings: 'honeycomb-settings'
121        settings-type: cfp
122        global-settings: 'global-settings'
123        global-settings-type: cfp
124
125    postbuilders:
126        - maven-target:
127            maven-version: 'mvn33-new'
128            goals: '--version'
129            settings: 'honeycomb-settings'
130            settings-type: cfp
131            global-settings: 'global-settings'
132            global-settings-type: cfp
133        - provide-maven-settings:
134            settings-file: 'honeycomb-settings'
135            global-settings-file: 'global-settings'
136
137    reporters:
138        - findbugs
139
140    publishers:
141        - sonar:
142            jdk: 'openjdk8-{os}'
143            language: 'java'
144            branch: '{stream}'
145        - email-notification:
146            email-prefix: '[honeycomb]'
147        - maven-deploy:
148            id: ''
149            unique-version: true
150            deploy-unstable: false
151
152- job-template:
153    name: 'honeycomb-benchmark-master'
154    project-type: maven
155    node: ubuntu1604-basebuild-4c-4g 
156    jdk: openjdk8-ubuntu1604
157
158    logrotate:
159        daysToKeep: '{build-days-to-keep}'
160        numToKeep: '{build-num-to-keep}'
161        artifactDaysToKeep: '{build-artifact-days-to-keep}'
162        artifactNumToKeep: '{build-artifact-num-to-keep}'
163
164    parameters:
165        - project-parameter:
166            project: '{project}'
167        - os-parameter:
168            os: 'ubuntu1604'
169        - maven-project-parameter:
170            maven: 'mvn33-new'
171        - maven-exec:
172            maven-version: 'mvn33-new'
173        - repo-name-parameter:
174            repo-name: 'master.ubuntu.xenial.main'
175
176    scm:
177        - git-scm:
178            credentials-id: 'jenkins-gerrit-credentials'
179            branch: 'master'
180
181    wrappers:
182        - ssh-agent-credentials:
183            users:
184                - 'jenkins-gerrit-credentials'
185        - fdio-infra-wrappers:
186            build-timeout: '{build-timeout}'
187
188    triggers:
189        - timed: '@daily'
190
191    maven:
192        maven-name: 'mvn33-new'
193        root-pom: 'pom.xml'
194        goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -Dmerge -Pbenchmark'
195        maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
196        settings: 'honeycomb-settings'
197        settings-type: cfp
198        global-settings: 'global-settings'
199        global-settings-type: cfp
200
201    publishers:
202        - plot:
203            - title: 'Infrastructure CFG write benchmark'
204              yaxis: 'ops/second'
205              csv-file-name: 'benchmark.csv'
206              group: 'infra-bench'
207              keep-records: true
208              numbuilds: '20'
209              style: 'line'
210              use-description: false
211              series:
212                - file: 'infra/it/benchmark/target/benchmark.csv'
213                  display-table: true
214                  format: 'csv'
215                  inclusion-flag: 'include-by-string'
216                  exclude: 'Score'
217