Merge "Convert nsh_sfc to be Packer compliant"
[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: 'ubuntu1604-basebuild-4c-4g'
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: 'ubuntu1604-basebuild-4c-4g'
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-new'
97         - maven-exec:
98             maven-version: 'mvn33-new'
99
100     scm:
101         - gerrit-trigger-scm:
102             credentials-id: 'jenkins-gerrit-credentials'
103             refspec: ''
104             choosing-strategy: 'default'
105             branch: '{branch}'
106
107     wrappers:
108         - fdio-infra-wrappers:
109             build-timeout: '{build-timeout}'
110
111     triggers:
112         - gerrit:
113             server-name: 'Primary'
114             trigger-on:
115                 - comment-added-contains-event:
116                     comment-contains-value: 'verify-csit'
117             projects:
118               - project-compare-type: 'ANT'
119                 project-pattern: '{project}'
120                 branches:
121                   - branch-compare-type: 'ANT'
122                     branch-pattern: '**/{branch}'
123             skip-vote:
124                 successful: true
125                 failed: true
126                 unstable: true
127                 notbuilt: true
128
129     prebuilders:
130         - shell: |
131             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.8.0-openjdk-amd64||echo 'ignoring failure';fi
132         - shell:
133             !include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
134
135     maven:
136         maven-name: 'mvn33-new'
137         root-pom: 'pom.xml'
138         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'
139         maven-opts: '-Xmx2048m -Dmaven.compile.fork=true'
140         settings: 'hc2vpp-settings'
141         settings-type: cfp
142         global-settings: 'global-settings'
143         global-settings-type: cfp
144
145     postbuilders:
146         - shell:
147             !include-raw-escape: include-raw-hc2vpp-csit-verify.sh
148         - shell: |
149             if [ "${{OS}}" == "ubuntu1404" ];then sudo update-java-alternatives -s /usr/lib/jvm/java-1.7.0-openjdk-amd64||echo 'ignoring failure';fi
150
151     publishers:
152         - archive-artifacts:
153             artifacts: 'csit/report.html, csit/log.html, csit/output.xml, csit/honeycomb.log'
154             latest-only: false
155         - email-notification:
156             email-prefix: '[hc2vpp]'
157
158         - robot-report:
159             output-path: 'csit'