rpm_dpdk.yaml revision f2dfaad9
1- project:
2    name: rpm_dpdk
3    jobs:
4        - 'rpm_dpdk-verify-{stream}-{os}'
5        - 'rpm_dpdk-merge-{stream}-{os}'
6        - 'rpm_dpdk-verify-image-{stream}-{os}'
7
8    project: 'rpm_dpdk'
9    os:
10        - centos7:
11            repo-os-part: 'centos7'
12    stream:
13        - master:
14            branch: 'master'
15            repo-stream-part: 'master'
16
17- job-template:
18    name: 'rpm_dpdk-verify-{stream}-{os}'
19
20    project-type: freestyle
21    node: 'verify-{os}'
22    concurrent: true
23
24    logrotate:
25        daysToKeep: '{build-days-to-keep}'
26        numToKeep: '{build-num-to-keep}'
27        artifactDaysToKeep: '{build-artifact-days-to-keep}'
28        artifactNumToKeep: '{build-artifact-num-to-keep}'
29
30    parameters:
31        - project-parameter:
32            project: '{project}'
33        - gerrit-parameter:
34            branch: '{branch}'
35        - os-parameter:
36            os: '{os}'
37        - repo-name-parameter:
38            repo-name: '{repo-stream-part}.{repo-os-part}'
39
40    scm:
41        - gerrit-trigger-scm:
42            credentials-id: '{ssh-credentials}'
43            refspec: '$GERRIT_REFSPEC'
44            choosing-strategy: 'gerrit'
45
46    wrappers:
47        - ssh-agent-credentials:
48            users:
49                - '{ssh-credentials}'
50        - fdio-infra-wrappers:
51            build-timeout: '{build-timeout}'
52
53    triggers:
54        - gerrit-trigger-patch-submitted:
55            name: '{project}'
56            branch: '{branch}'
57
58    builders:
59        - shell:
60            !include-raw-escape:
61                - include-raw-rpm_dpdk-pkg-build.sh
62
63- job-template:
64    name: 'rpm_dpdk-verify-image-{stream}-{os}'
65
66    project-type: freestyle
67    node: 'verify-image-{os}'
68    concurrent: true
69
70    logrotate:
71        daysToKeep: '{build-days-to-keep}'
72        numToKeep: '{build-num-to-keep}'
73        artifactDaysToKeep: '{build-artifact-days-to-keep}'
74        artifactNumToKeep: '{build-artifact-num-to-keep}'
75
76    parameters:
77        - project-parameter:
78            project: '{project}'
79        - gerrit-parameter:
80            branch: '{branch}'
81        - os-parameter:
82            os: '{os}'
83        - repo-name-parameter:
84            repo-name: '{repo-stream-part}.{repo-os-part}'
85
86    scm:
87        - gerrit-trigger-scm:
88            credentials-id: '{ssh-credentials}'
89            refspec: '$GERRIT_REFSPEC'
90            choosing-strategy: 'gerrit'
91
92    wrappers:
93        - ssh-agent-credentials:
94            users:
95                - '{ssh-credentials}'
96        - fdio-infra-wrappers:
97            build-timeout: '{build-timeout}'
98
99    triggers:
100        - gerrit:
101            server-name: 'Primary'
102            trigger-on:
103                - comment-added-contains-event:
104                    comment-contains-value: 'verify-images'
105            projects:
106              - project-compare-type: 'ANT'
107                project-pattern: '{project}'
108                branches:
109                  - branch-compare-type: 'ANT'
110                    branch-pattern: '**/{branch}'
111            skip-vote:
112                successful: true
113                failed: true
114                unstable: true
115                notbuilt: true
116
117    builders:
118        - shell:
119            !include-raw-escape:
120                - include-raw-rpm_dpdk-pkg-build.sh
121
122- job-template:
123    name: 'rpm_dpdk-merge-{stream}-{os}'
124
125    project-type: freestyle
126    node: 'merge-{os}'
127
128    logrotate:
129        daysToKeep: '{build-days-to-keep}'
130        numToKeep: '{build-num-to-keep}'
131        artifactDaysToKeep: '{build-artifact-days-to-keep}'
132        artifactNumToKeep: '{build-artifact-num-to-keep}'
133
134    parameters:
135        - project-parameter:
136            project: '{project}'
137        - gerrit-parameter:
138            branch: '{branch}'
139        - os-parameter:
140            os: '{os}'
141        - repo-name-parameter:
142            repo-name: '{repo-stream-part}.{repo-os-part}'
143
144    scm:
145        - gerrit-trigger-scm:
146            credentials-id: '{ssh-credentials}'
147            refspec: ''
148            choosing-strategy: 'default'
149
150    wrappers:
151        - ssh-agent-credentials:
152            users:
153                - '{ssh-credentials}'
154        - fdio-infra-wrappers:
155            build-timeout: '{build-timeout}'
156
157    triggers:
158        - gerrit-trigger-patch-merged:
159            name: '{project}'
160            branch: '{branch}'
161
162    builders:
163        - config-file-provider:
164            files:
165              - file-id: 'rpm_dpdk-settings'
166                variable: 'SETTINGS_FILE'
167              - file-id: 'global-settings'
168                variable: 'GLOBAL_SETTINGS_FILE'
169        - shell:
170            !include-raw-escape:
171                - include-raw-rpm_dpdk-pkg-build.sh
172                - include-raw-rpm_dpdk-pkg-push.sh
173
174