Merge "Add jdk parameter to hc2vpp-csit-verify job"
[ci-management.git] / jjb / hc2vpp / csit-hc2vpp.yaml
1 - project:
2     name: csit-hc2vpp
3     description: 'jenkins jobs to test Hc2vpp features.'
4     jobs:
5         - 'hc2vpp-csit-integration-{stream}-{os}'
6         - 'hc2vpp-csit-verify-{stream}-{os}'
7     project: 'hc2vpp'
8     build-artifact-num-to-keep: 10
9     stream:
10         - master:
11             branch: 'master'
12             repo-stream-part: 'master'
13         - '1701':
14             branch: 'stable/1701'
15             repo-stream-part: 'stable.1701'
16     os:
17         - ubuntu1404:
18             repo-os-part: 'ubuntu.trusty.main'
19             skip-site: 'true'
20
21 - job-template:
22     name: 'hc2vpp-csit-integration-{stream}-{os}'
23
24     project-type: freestyle
25     node: 'ubuntu1404-basebuild-4c-4g'
26     concurrent: true
27
28     logrotate:
29         daysToKeep: '{build-days-to-keep}'
30         numToKeep: '{build-num-to-keep}'
31         artifactDaysToKeep: '{build-artifact-days-to-keep}'
32         artifactNumToKeep: '{build-artifact-num-to-keep}'
33
34     parameters:
35         - project-parameter:
36             project: '{project}'
37         - os-parameter:
38             os: '{os}'
39         - stream-parameter:
40             stream: '{stream}'
41
42     scm:
43         - git-scm:
44             credentials-id: 'jenkins-gerrit-credentials'
45             branch: '{branch}'
46
47     wrappers:
48         - fdio-infra-wrappers:
49             build-timeout: '{build-timeout}'
50
51     triggers:
52         - reverse:
53             jobs: 'hc2vpp-integration-{stream}-{os}'
54             result: 'success'
55
56     prebuilders:
57         - shell: |
58             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64||echo 'ignoring failure';fi
59
60     builders:
61         - shell:
62             !include-raw-escape: include-raw-hc2vpp-csit-integration.sh
63
64     postbuilders:
65         - shell: |
66             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.7.0-openjdk-amd64||echo 'ignoring failure';fi
67
68     publishers:
69         - archive-artifacts:
70             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
71             latest-only: false
72         - email-notification:
73             email-prefix: '[hc2vpp]'
74
75         - robot-report:
76             output-path: 'csit'
77
78 - job-template:
79     name: 'hc2vpp-csit-verify-{stream}-{os}'
80
81     project-type: maven
82     node: 'ubuntu1404-basebuild-4c-4g'
83     jdk: openjdk8-{os}
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         - maven-project-parameter:
100             maven: 'mvn33-new'
101         - maven-exec:
102             maven-version: 'mvn33-new'
103         - stream-parameter:
104             stream: '{stream}'
105
106     scm:
107         - gerrit-trigger-scm:
108             credentials-id: 'jenkins-gerrit-credentials'
109             refspec: ''
110             choosing-strategy: 'default'
111             branch: '{branch}'
112
113     wrappers:
114         - fdio-infra-wrappers:
115             build-timeout: '{build-timeout}'
116
117     triggers:
118         - gerrit:
119             server-name: 'Primary'
120             trigger-on:
121                 - comment-added-contains-event:
122                     comment-contains-value: 'verify-csit'
123             projects:
124               - project-compare-type: 'ANT'
125                 project-pattern: '{project}'
126                 branches:
127                   - branch-compare-type: 'ANT'
128                     branch-pattern: '**/{branch}'
129             skip-vote:
130                 successful: true
131                 failed: true
132                 unstable: true
133                 notbuilt: true
134
135     prebuilders:
136         - shell: |
137             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64||echo 'ignoring failure';fi
138         - shell:
139             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
140
141     maven:
142         maven-name: 'mvn33-new'
143         root-pom: 'pom.xml'
144         goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.site.skip={skip-site} site -Dmaven.site.deploy.skip={skip-site} -DskipTests'
145         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
146         settings: 'hc2vpp-settings'
147         settings-type: cfp
148         global-settings: 'global-settings'
149         global-settings-type: cfp
150
151     postbuilders:
152         - shell:
153             !include-raw-escape: include-raw-hc2vpp-csit-verify.sh
154         - shell: |
155             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.7.0-openjdk-amd64||echo 'ignoring failure';fi
156
157     publishers:
158         - archive-artifacts:
159             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
160             latest-only: false
161         - email-notification:
162             email-prefix: '[hc2vpp]'
163
164         - robot-report:
165             output-path: 'csit'