JVPP-22: introduce jvpp-verify job
[ci-management.git] / jjb / jvpp / jvpp.yaml
1 ---
2 - project:
3     name: jvpp
4     jobs:
5       - 'jvpp-verify-{stream}-{os}'
6     project: 'jvpp'
7     os:
8       - ubuntu1604:
9           repo-os-part: 'ubuntu.xenial.main'
10           skip-site: 'false'
11           skip-jar-deploy: 'false'
12       - ubuntu1804:
13           repo-os-part: 'ubuntu.bionic.main'
14           skip-site: 'false'
15           skip-jar-deploy: 'false'
16       - centos7:
17           repo-os-part: 'centos7'
18           skip-site: 'true'
19           skip-jar-deploy: 'true'
20     stream:
21       - master:
22           branch: 'master'
23           repo-stream-part: 'master'
24
25 - project:
26     name: jvpp-view
27     views:
28       - project-view
29     project-name: jvpp
30
31 - job-template:
32     name: 'jvpp-verify-{stream}-{os}'
33
34     project-type: freestyle
35     node: '{os}-us'
36     concurrent: true
37
38     build-discarder:
39       daysToKeep: '{build-days-to-keep}'
40       numToKeep: '{build-num-to-keep}'
41       artifactDaysToKeep: '{build-artifact-days-to-keep}'
42       artifactNumToKeep: '{build-artifact-num-to-keep}'
43
44     parameters:
45       - project-parameter:
46           project: '{project}'
47       - gerrit-parameter:
48           branch: '{branch}'
49       - os-parameter:
50           os: '{os}'
51       - repo-name-parameter:
52           repo-name: '{repo-stream-part}.{repo-os-part}'
53       - stream-parameter:
54           stream: '{stream}'
55
56     scm:
57       - gerrit-trigger-scm:
58           credentials-id: 'jenkins-gerrit-credentials'
59           refspec: '$GERRIT_REFSPEC'
60           choosing-strategy: 'gerrit'
61
62     wrappers:
63       - fdio-infra-wrappers:
64           build-timeout: '{build-timeout}'
65
66     triggers:
67       - gerrit-trigger-patch-submitted:
68           name: '{project}'
69           branch: '{branch}'
70
71     builders:
72       - shell:
73           !include-raw-escape:
74           - ../scripts/setup_jvpp_dev_env.sh
75           - include-raw-jvpp-build.sh
76
77     publishers:
78       - archive:
79           artifacts: >
80             **/build-root/packages/*.rpm,
81             **/build-root/packages/*.deb
82
83           allow-empty: 'true'
84           fingerprint: false
85           only-if-success: true
86           default-excludes: false
87       - naginator:
88           rerun-unstable-builds: false
89           max-failed-builds: 2
90           fixed-delay: 90
91       - email-notification:
92           email-prefix: '[jvpp]'