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