deb_dpdk.yaml revision 091ac2bd
1- project:
2    name: deb_dpdk
3    jobs:
4        - 'deb_dpdk-verify-{stream}-{os}'
5        - 'deb_dpdk-merge-{stream}-{os}'
6        - 'deb_dpdk-verify-image-{stream}-{os}'
7
8    project: 'deb_dpdk'
9    os:
10        - ubuntu1804:
11            repo-os-part: 'ubuntu.bionic.main'
12    stream:
13        - 1607:
14            branch: 'deb_dpdk_16.07'
15            repo-stream-part: 'deb_dpdk_1607'
16        - 1611:
17            branch: '16.11.x'
18            repo-stream-part: 'deb_dpdk_1611'
19        - 1705:
20            branch: '17.05.x'
21            repo-stream-part: 'deb_dpdk_1705'
22        - 1708:
23            branch: '17.08.x'
24            repo-stream-part: 'deb_dpdk_1708'
25        - 1711:
26            branch: '17.11.x'
27            repo-stream-part: 'deb_dpdk_1711'
28        - 1802:
29            branch: '18.02.x'
30            repo-stream-part: 'deb_dpdk_1802'
31
32- job-template:
33    name: 'deb_dpdk-verify-{stream}-{os}'
34
35    project-type: freestyle
36    node: '{os}-basebuild-4c-4g'
37    concurrent: true
38
39    logrotate:
40        daysToKeep: '{build-days-to-keep}'
41        numToKeep: '{build-num-to-keep}'
42        artifactDaysToKeep: '{build-artifact-days-to-keep}'
43        artifactNumToKeep: '{build-artifact-num-to-keep}'
44
45    parameters:
46        - project-parameter:
47            project: '{project}'
48        - gerrit-parameter:
49            branch: '{branch}'
50        - os-parameter:
51            os: '{os}'
52        - repo-name-parameter:
53            repo-name: '{repo-stream-part}.{repo-os-part}'
54
55    scm:
56        - gerrit-trigger-scm:
57            credentials-id: 'jenkins-gerrit-credentials'
58            refspec: '$GERRIT_REFSPEC'
59            choosing-strategy: 'gerrit'
60
61    wrappers:
62        - fdio-infra-wrappers:
63            build-timeout: '{build-timeout}'
64
65    triggers:
66        - gerrit-trigger-patch-submitted:
67            name: '{project}'
68            branch: '{branch}'
69
70    builders:
71        - shell:
72            !include-raw-escape:
73                - include-raw-deb_dpdk-build.sh
74
75    publishers:
76        - fdio-infra-shiplogs:
77            maven-version: 'mvn33-new'
78
79- job-template:
80    name: 'deb_dpdk-verify-image-{stream}-{os}'
81
82    project-type: freestyle
83    node: '{os}-basebuild-4c-4g'
84    concurrent: true
85
86    logrotate:
87        daysToKeep: '{build-days-to-keep}'
88        numToKeep: '{build-num-to-keep}'
89        artifactDaysToKeep: '{build-artifact-days-to-keep}'
90        artifactNumToKeep: '{build-artifact-num-to-keep}'
91
92    parameters:
93        - project-parameter:
94            project: '{project}'
95        - gerrit-parameter:
96            branch: '{branch}'
97        - os-parameter:
98            os: '{os}'
99        - repo-name-parameter:
100            repo-name: '{repo-stream-part}.{repo-os-part}'
101
102    scm:
103        - gerrit-trigger-scm:
104            credentials-id: 'jenkins-gerrit-credentials'
105            refspec: '$GERRIT_REFSPEC'
106            choosing-strategy: 'gerrit'
107
108    wrappers:
109        - fdio-infra-wrappers:
110            build-timeout: '{build-timeout}'
111
112    triggers:
113        - gerrit:
114            server-name: 'Primary'
115            trigger-on:
116                - comment-added-contains-event:
117                    comment-contains-value: 'verify-images'
118            projects:
119              - project-compare-type: 'ANT'
120                project-pattern: '{project}'
121                branches:
122                  - branch-compare-type: 'ANT'
123                    branch-pattern: '**/{branch}'
124            skip-vote:
125                successful: true
126                failed: true
127                unstable: true
128                notbuilt: true
129
130    builders:
131        - shell:
132            !include-raw-escape:
133                - include-raw-deb_dpdk-build.sh
134
135    publishers:
136        - fdio-infra-shiplogs:
137            maven-version: 'mvn33-new'
138
139- job-template:
140    name: 'deb_dpdk-merge-{stream}-{os}'
141
142    project-type: freestyle
143    node: '{os}-basebuild-4c-4g'
144
145    logrotate:
146        daysToKeep: '{build-days-to-keep}'
147        numToKeep: '{build-num-to-keep}'
148        artifactDaysToKeep: '{build-artifact-days-to-keep}'
149        artifactNumToKeep: '{build-artifact-num-to-keep}'
150
151    parameters:
152        - project-parameter:
153            project: '{project}'
154        - gerrit-parameter:
155            branch: '{branch}'
156        - os-parameter:
157            os: '{os}'
158        - maven-exec:
159            maven-version: 'mvn33-new'
160        - repo-name-parameter:
161            repo-name: '{repo-stream-part}.{repo-os-part}'
162
163    scm:
164        - gerrit-trigger-scm:
165            credentials-id: 'jenkins-gerrit-credentials'
166            refspec: ''
167            choosing-strategy: 'default'
168
169    wrappers:
170        - fdio-infra-wrappers:
171            build-timeout: '{build-timeout}'
172
173    triggers:
174        - gerrit-trigger-patch-merged:
175            name: '{project}'
176            branch: '{branch}'
177
178    builders:
179        - maven-target:
180            maven-version: 'mvn33-new'
181            goals: '--version'
182            settings: 'deb_dpdk-settings'
183            settings-type: cfp
184            global-settings: 'global-settings'
185            global-settings-type: cfp
186        - config-file-provider:
187            files:
188              - file-id: 'deb_dpdk-settings'
189                variable: 'SETTINGS_FILE'
190              - file-id: 'global-settings'
191                variable: 'GLOBAL_SETTINGS_FILE'
192        - shell:
193            !include-raw-escape: ../scripts/create_maven_env.sh
194        - inject:
195            properties-file: maven_env.txt
196        - shell:
197            !include-raw-escape:
198                - include-raw-deb_dpdk-build.sh
199                - ../scripts/maven_push_functions.sh
200                - include-raw-deb_dpdk-pkg-push.sh
201
202    publishers:
203        - fdio-infra-shiplogs:
204            maven-version: 'mvn33-new'
205