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