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