jvpp.yaml revision 78ffb3b6
1---
2- project:
3    name: jvpp
4    jobs:
5      - 'jvpp-verify-{stream}-{os}'
6      - 'jvpp-merge-{stream}-{os}'
7    project: 'jvpp'
8    os:
9      - ubuntu1604:
10          repo-os-part: 'ubuntu.xenial.main'
11          skip-site: 'false'
12          skip-jar-deploy: 'true'
13          vpp-job-prefix: ''
14      - ubuntu1804:
15          repo-os-part: 'ubuntu.bionic.main'
16          skip-site: 'false'
17          skip-jar-deploy: 'false'
18          vpp-job-prefix: 'beta-'
19      - centos7:
20          repo-os-part: 'centos7'
21          skip-site: 'true'
22          skip-jar-deploy: 'true'
23          vpp-job-prefix: ''
24    stream:
25      - master:
26          branch: 'master'
27          repo-stream-part: 'master'
28
29- project:
30    name: jvpp-view
31    views:
32      - project-view
33    project-name: jvpp
34
35- job-template:
36    name: 'jvpp-verify-{stream}-{os}'
37
38    project-type: freestyle
39    node: '{os}-us'
40    concurrent: true
41
42    build-discarder:
43      daysToKeep: '{build-days-to-keep}'
44      numToKeep: '{build-num-to-keep}'
45      artifactDaysToKeep: '{build-artifact-days-to-keep}'
46      artifactNumToKeep: '{build-artifact-num-to-keep}'
47
48    parameters:
49      - project-parameter:
50          project: '{project}'
51      - gerrit-parameter:
52          branch: '{branch}'
53      - os-parameter:
54          os: '{os}'
55      - repo-name-parameter:
56          repo-name: '{repo-stream-part}.{repo-os-part}'
57      - stream-parameter:
58          stream: '{stream}'
59
60    scm:
61      - gerrit-trigger-scm:
62          credentials-id: 'jenkins-gerrit-credentials'
63          refspec: '$GERRIT_REFSPEC'
64          choosing-strategy: 'gerrit'
65
66    wrappers:
67      - fdio-infra-wrappers:
68          build-timeout: '{build-timeout}'
69
70    triggers:
71      - gerrit-trigger-patch-submitted:
72          name: '{project}'
73          branch: '{branch}'
74
75    builders:
76      - lf-update-java-alternatives:
77          java-version: openjdk11
78      - shell:
79          !include-raw-escape:
80          - ../scripts/setup_jvpp_dev_env.sh
81          - include-raw-jvpp-build.sh
82
83    publishers:
84      - archive:
85          artifacts: >
86            **/build-root/packages/*.rpm,
87            **/build-root/packages/*.deb
88
89          allow-empty: 'true'
90          fingerprint: false
91          only-if-success: true
92          default-excludes: false
93      - fdio-infra-shiplogs:
94          maven-version: 'mvn36'
95          archive-artifacts: '/tmp/jvpp-failed-unittests/*/* **/core'
96      - naginator:
97          rerun-unstable-builds: false
98          max-failed-builds: 2
99          fixed-delay: 90
100      - email-notification:
101          email-prefix: '[jvpp]'
102
103- job-template:
104    name: 'jvpp-merge-{stream}-{os}'
105
106    project-type: freestyle
107    node: '{os}-us'
108
109    build-discarder:
110      daysToKeep: '{build-days-to-keep}'
111      numToKeep: 100
112      artifactDaysToKeep: '{build-artifact-days-to-keep}'
113      artifactNumToKeep: '{build-artifact-num-to-keep}'
114
115    parameters:
116      - project-parameter:
117          project: '{project}'
118      - gerrit-parameter:
119          branch: '{branch}'
120      - os-parameter:
121          os: '{os}'
122      - maven-project-parameter:
123          maven: 'mvn36'
124      - maven-exec:
125          maven-version: 'mvn36'
126      - stream-parameter:
127          stream: '{stream}'
128      - repo-name-parameter:
129          repo-name: '{repo-stream-part}.{repo-os-part}'
130
131    scm:
132      - gerrit-trigger-scm:
133          credentials-id: 'jenkins-gerrit-credentials'
134          refspec: ''
135          choosing-strategy: 'default'
136
137    wrappers:
138      - fdio-infra-wrappers:
139          build-timeout: '{build-timeout}'
140
141    triggers:
142      - gerrit-trigger-patch-merged:
143          name: '{project}'
144          branch: '{branch}'
145      - reverse:
146          jobs: 'vpp-{vpp-job-prefix}merge-{stream}-{os}'
147          result: 'success'
148
149    builders:
150      - lf-update-java-alternatives:
151          java-version: openjdk11
152      - config-file-provider:
153          files:
154            - file-id: '.packagecloud'
155              target: '/root'
156      - config-file-provider:
157          files:
158            - file-id: 'packagecloud_api'
159              target: '/root'
160      - maven-target:
161          maven-version: 'mvn36'
162          goals: '--version'
163          settings: 'jvpp-settings'
164          settings-type: cfp
165          global-settings: 'global-settings'
166          global-settings-type: cfp
167      - shell:
168          !include-raw-escape:
169          - ../scripts/setup_jvpp_dev_env.sh
170          - include-raw-jvpp-build.sh
171      - provide-maven-settings:
172          settings-file: 'jvpp-settings'
173          global-settings-file: 'global-settings'
174      - shell:
175          !include-raw-escape:
176          - ./include-raw-jvpp-packetcloud-push.sh
177      - shell:
178          !include-raw-escape:
179          - ../scripts/maven_push_functions.sh
180          - include-raw-jvpp-maven-push.sh
181
182    publishers:
183      - archive:
184          artifacts: >
185            **/build-root/packages/*.rpm,
186            **/build-root/packages/*.deb
187          allow-empty: 'true'
188          fingerprint: false
189          only-if-success: true
190          default-excludes: false
191      - fdio-infra-shiplogs:
192          maven-version: 'mvn36'
193      - naginator:
194          rerun-unstable-builds: false
195          max-failed-builds: 1
196          fixed-delay: 90
197      - email-notification:
198          email-prefix: '[jvpp]'
199