Csit-Honeycomb job for 17.01
[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     concurrent: true
84
85     logrotate:
86         daysToKeep: '{build-days-to-keep}'
87         numToKeep: '{build-num-to-keep}'
88         artifactDaysToKeep: '{build-artifact-days-to-keep}'
89         artifactNumToKeep: '{build-artifact-num-to-keep}'
90
91     parameters:
92         - project-parameter:
93             project: '{project}'
94         - gerrit-parameter:
95             branch: '{branch}'
96         - os-parameter:
97             os: '{os}'
98         - maven-project-parameter:
99             maven: 'mvn33-new'
100         - maven-exec:
101             maven-version: 'mvn33-new'
102         - stream-parameter:
103             stream: '{stream}'
104
105     scm:
106         - gerrit-trigger-scm:
107             credentials-id: 'jenkins-gerrit-credentials'
108             refspec: ''
109             choosing-strategy: 'default'
110             branch: '{branch}'
111
112     wrappers:
113         - fdio-infra-wrappers:
114             build-timeout: '{build-timeout}'
115
116     triggers:
117         - gerrit:
118             server-name: 'Primary'
119             trigger-on:
120                 - comment-added-contains-event:
121                     comment-contains-value: 'verify-csit'
122             projects:
123               - project-compare-type: 'ANT'
124                 project-pattern: '{project}'
125                 branches:
126                   - branch-compare-type: 'ANT'
127                     branch-pattern: '**/{branch}'
128             skip-vote:
129                 successful: true
130                 failed: true
131                 unstable: true
132                 notbuilt: true
133
134     prebuilders:
135         - shell: |
136             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64||echo 'ignoring failure';fi
137         - shell:
138             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
139
140     maven:
141         maven-name: 'mvn33-new'
142         root-pom: 'pom.xml'
143         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'
144         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
145         settings: 'hc2vpp-settings'
146         settings-type: cfp
147         global-settings: 'global-settings'
148         global-settings-type: cfp
149
150     postbuilders:
151         - shell:
152             !include-raw-escape: include-raw-hc2vpp-csit-verify.sh
153         - shell: |
154             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.7.0-openjdk-amd64||echo 'ignoring failure';fi
155
156     publishers:
157         - archive-artifacts:
158             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
159             latest-only: false
160         - email-notification:
161             email-prefix: '[hc2vpp]'
162
163         - robot-report:
164             output-path: 'csit'