rpm_dpdk.yaml revision 5fdc40e5
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: 'jenkins-gerrit-credentials'
43            refspec: '$GERRIT_REFSPEC'
44            choosing-strategy: 'gerrit'
45
46    wrappers:
47        - fdio-infra-wrappers:
48            build-timeout: '{build-timeout}'
49
50    triggers:
51        - gerrit-trigger-patch-submitted:
52            name: '{project}'
53            branch: '{branch}'
54
55    builders:
56        - shell:
57            !include-raw-escape:
58                - include-raw-rpm_dpdk-pkg-build.sh
59
60- job-template:
61    name: 'rpm_dpdk-verify-image-{stream}-{os}'
62
63    project-type: freestyle
64    node: 'verify-image-{os}'
65    concurrent: true
66
67    logrotate:
68        daysToKeep: '{build-days-to-keep}'
69        numToKeep: '{build-num-to-keep}'
70        artifactDaysToKeep: '{build-artifact-days-to-keep}'
71        artifactNumToKeep: '{build-artifact-num-to-keep}'
72
73    parameters:
74        - project-parameter:
75            project: '{project}'
76        - gerrit-parameter:
77            branch: '{branch}'
78        - os-parameter:
79            os: '{os}'
80        - repo-name-parameter:
81            repo-name: '{repo-stream-part}.{repo-os-part}'
82
83    scm:
84        - gerrit-trigger-scm:
85            credentials-id: 'jenkins-gerrit-credentials'
86            refspec: '$GERRIT_REFSPEC'
87            choosing-strategy: 'gerrit'
88
89    wrappers:
90        - fdio-infra-wrappers:
91            build-timeout: '{build-timeout}'
92
93    triggers:
94        - gerrit:
95            server-name: 'Primary'
96            trigger-on:
97                - comment-added-contains-event:
98                    comment-contains-value: 'verify-images'
99            projects:
100              - project-compare-type: 'ANT'
101                project-pattern: '{project}'
102                branches:
103                  - branch-compare-type: 'ANT'
104                    branch-pattern: '**/{branch}'
105            skip-vote:
106                successful: true
107                failed: true
108                unstable: true
109                notbuilt: true
110
111    builders:
112        - shell:
113            !include-raw-escape:
114                - include-raw-rpm_dpdk-pkg-build.sh
115
116- job-template:
117    name: 'rpm_dpdk-merge-{stream}-{os}'
118
119    project-type: freestyle
120    node: 'merge-{os}'
121
122    logrotate:
123        daysToKeep: '{build-days-to-keep}'
124        numToKeep: '{build-num-to-keep}'
125        artifactDaysToKeep: '{build-artifact-days-to-keep}'
126        artifactNumToKeep: '{build-artifact-num-to-keep}'
127
128    parameters:
129        - project-parameter:
130            project: '{project}'
131        - gerrit-parameter:
132            branch: '{branch}'
133        - os-parameter:
134            os: '{os}'
135        - repo-name-parameter:
136            repo-name: '{repo-stream-part}.{repo-os-part}'
137
138    scm:
139        - gerrit-trigger-scm:
140            credentials-id: 'jenkins-gerrit-credentials'
141            refspec: ''
142            choosing-strategy: 'default'
143
144    wrappers:
145        - fdio-infra-wrappers:
146            build-timeout: '{build-timeout}'
147
148    triggers:
149        - gerrit-trigger-patch-merged:
150            name: '{project}'
151            branch: '{branch}'
152
153    builders:
154        - config-file-provider:
155            files:
156              - file-id: 'rpm_dpdk-settings'
157                variable: 'SETTINGS_FILE'
158              - file-id: 'global-settings'
159                variable: 'GLOBAL_SETTINGS_FILE'
160        - shell:
161            !include-raw-escape:
162                - include-raw-rpm_dpdk-pkg-build.sh
163                - include-raw-rpm_dpdk-pkg-push.sh
164
165