blob: 4271badef558477999de1baab2086fd47cefb148 [file] [log] [blame]
Kailash Khalasi54170812018-05-24 12:50:22 -07001// Copyright 2017-present Open Networking Foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Zack Williams9d68aa32018-07-12 11:50:37 -070015// Run XOS api tests on HEAD of a branch (usually master), loading the
16// corresponding charts
17
Kailash Khalasi54170812018-05-24 12:50:22 -070018CORE_CONTAINER="null"
19
20pipeline {
21
22 /* no label, executor is determined by JJB */
23 agent {
24 label "${params.executorNode}"
25 }
26
27 stages {
28
29 stage('repo') {
30 steps {
31 checkout(changelog: false, \
32 poll: false,
33 scm: [$class: 'RepoScm', \
34 manifestRepositoryUrl: "${params.manifestUrl}", \
35 manifestBranch: "${params.manifestBranch}", \
36 currentBranch: true, \
37 destinationDir: 'cord', \
38 forceSync: true,
39 resetFirst: true, \
40 quiet: true, \
41 jobs: 4, \
42 showAllChanges: true] \
43 )
44 }
45 }
46
47 stage('patch') {
48 steps {
49 sh """
Zack Williams0efdd262018-06-28 14:17:29 -070050 #!/usr/bin/env bash
51 set -eu -o pipefail
52
53 VERSIONFILE="" # file path to file containing version number
54 NEW_VERSION="" # version number found in VERSIONFILE
Zack Williams2d0ac6b2018-06-29 09:17:41 -070055 releaseversion=0
Zack Williams0efdd262018-06-28 14:17:29 -070056
57 function read_version {
58 if [ -f "VERSION" ]
59 then
60 NEW_VERSION=\$(head -n1 "VERSION")
61 VERSIONFILE="VERSION"
62 elif [ -f "package.json" ]
63 then
64 NEW_VERSION=\$(python -c 'import json,sys;obj=json.load(sys.stdin); print obj["version"]' < package.json)
65 VERSIONFILE="package.json"
66 else
67 echo "ERROR: No versioning file found!"
68 exit 1
69 fi
70 }
71
72 # check if the version is a released version
73 function check_if_releaseversion {
74 if [[ "\$NEW_VERSION" =~ ^([0-9]+)\\.([0-9]+)\\.([0-9]+)\$ ]]
75 then
76 echo "Version string '\$NEW_VERSION' in '\$VERSIONFILE' is a SemVer released version!"
77 releaseversion=1
78 else
79 echo "Version string '\$NEW_VERSION' in '\$VERSIONFILE' is not a SemVer released version, skipping."
80 fi
81 }
82
Kailash Khalasi54170812018-05-24 12:50:22 -070083 pushd cord
84 PROJECT_PATH=\$(xmllint --xpath "string(//project[@name=\\\"${gerritProject}\\\"]/@path)" .repo/manifest.xml)
85 repo download "\$PROJECT_PATH" "${gerritChangeNumber}/${gerritPatchsetNumber}"
Zack Williams0efdd262018-06-28 14:17:29 -070086
87 pushd \$PROJECT_PATH
88 echo "Existing git tags:"
89 git tag -n
90
91 read_version
92 check_if_releaseversion
93
94 # perform checks if a released version
95 if [ "\$releaseversion" -eq "1" ]
96 then
97 git config --global user.email "apitest@opencord.org"
98 git config --global user.name "API Test"
99
100 git tag -a "\$NEW_VERSION" -m "Tagged for api test on Gerrit patchset: ${gerritChangeNumber}"
101
102 echo "Tags including new tag:"
103 git tag -n
104
105 fi
Kailash Khalasi54170812018-05-24 12:50:22 -0700106 popd
Zack Williams0efdd262018-06-28 14:17:29 -0700107 popd
108 """
Kailash Khalasi54170812018-05-24 12:50:22 -0700109 }
110 }
111
Zack Williams66500002018-09-06 15:29:05 -0700112 stage('tag update') {
113 steps {
114 sh """
115 #!/usr/bin/env bash
116 set -eu -o pipefail
117
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700118 echo "" > $WORKSPACE/xos_tags.yaml
Zack Williams66500002018-09-06 15:29:05 -0700119 # skip projects that aren't the XOS core repository
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700120 if [ "$GERRIT_PROJECT" != "xos" ]; then
Zack Williams66500002018-09-06 15:29:05 -0700121 exit 0
122 fi
123
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700124 echo "" > $WORKSPACE/updated_dockerfiles
Zack Williams66500002018-09-06 15:29:05 -0700125 XOS_MAJOR=\$(cut -b 1 cord/orchestration/xos/VERSION)
126 XOS_VERSION=\$(cat cord/orchestration/xos/VERSION)
127
128 # update services
129 for df in cord/orchestration/xos_services/*/Dockerfile.synchronizer cord/orchestration/profiles/*/Dockerfile.synchronizer
130 do
131 df_contents=\$(cat "\$df")
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700132 if [[ "\$df_contents" =~ "FROM xosproject/xos-synchronizer-base:\$XOS_MAJOR" ||
Zack Williams66500002018-09-06 15:29:05 -0700133 "\$df_contents" =~ "FROM xosproject/xos-synchronizer-base:master" ]]
134 then
135 sed -i "s/^FROM\\(.*\\):.*\$/FROM\\1:\$XOS_VERSION/" "\$df"
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700136 echo "$WORKSPACE/\$df" >> $WORKSPACE/updated_dockerfiles
Zack Williams66500002018-09-06 15:29:05 -0700137 fi
138 done
139
140 # create values file with core version tags
Zack Williams9b6b5eb2018-09-14 13:45:18 -0700141 # not indented because heredoc requires it
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700142 cat << EOF > $WORKSPACE/xos_tags.yaml
Zack Williams9b6b5eb2018-09-14 13:45:18 -0700143---
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700144xos_coreImage: 'xosproject/xos-core:\$XOS_VERSION'
145xos_chameleonImage: 'xosproject/chameleon:\$XOS_VERSION'
Zack Williams9b6b5eb2018-09-14 13:45:18 -0700146EOF
Zack Williams66500002018-09-06 15:29:05 -0700147 """
148 }
149 }
Zack Williams0efdd262018-06-28 14:17:29 -0700150
Kailash Khalasi54170812018-05-24 12:50:22 -0700151 stage('prep') {
152 parallel {
153
154 stage('images') {
155 steps {
156 sh '''
Kailash Khalasi934d39b2018-05-30 10:59:49 -0700157 pushd cord/automation-tools/developer
Zack Williamsa3185032018-07-03 17:38:33 -0700158 mkdir ib_logs
Zack Williams7fea5722018-07-03 21:17:47 -0700159 ./imagebuilder.py -l ib_logs -a ib_actions.yml -g ib_graph.dot -f ../../helm-charts/examples/filter-images.yaml
Kailash Khalasi54170812018-05-24 12:50:22 -0700160 popd
161 '''
Zack Williamsa3185032018-07-03 17:38:33 -0700162 archiveArtifacts artifacts: 'cord/automation-tools/developer/ib_actions.yml, cord/automation-tools/developer/ib_graph.dot, cord/automation-tools/developer/ib_logs/*', fingerprint: true
Kailash Khalasi54170812018-05-24 12:50:22 -0700163 }
164 }
165
166 stage('minikube') {
167 steps {
168 /* see https://github.com/kubernetes/minikube/#linux-continuous-integration-without-vm-support */
169 sh '''
170 export MINIKUBE_WANTUPDATENOTIFICATION=false
171 export MINIKUBE_WANTREPORTERRORPROMPT=false
172 export CHANGE_MINIKUBE_NONE_USER=true
173 export MINIKUBE_HOME=$HOME
174 mkdir -p $HOME/.kube || true
175 touch $HOME/.kube/config
176 export KUBECONFIG=$HOME/.kube/config
177 sudo -E /usr/bin/minikube start --vm-driver=none
178 '''
179 script {
180 timeout(3) {
181 waitUntil {
182 sleep 5
183 def kc_ret = sh script: "kubectl get po", returnStatus: true
184 return (kc_ret == 0);
185 }
186 }
187 }
188 }
189 }
190 }
191 }
Zack Williamsfd87d652018-07-12 14:21:12 -0700192
Kailash Khalasi54170812018-05-24 12:50:22 -0700193 stage('helm') {
194 steps {
195 sh '''
196 helm init
197 sleep 60
198 helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
199 '''
200 }
201 }
Zack Williamsfd87d652018-07-12 14:21:12 -0700202
203 stage('build') {
Kailash Khalasi54170812018-05-24 12:50:22 -0700204 steps {
205 sh """
Zack Williamsc8cfb222018-07-05 13:29:28 -0700206 #!/usr/bin/env bash
207 set -eu -o pipefail
Kailash Khalasi12b2e222018-06-13 09:45:25 -0700208
Zack Williamsc8cfb222018-07-05 13:29:28 -0700209 helm_install_args='-f examples/image-tag-candidate.yaml -f examples/imagePullPolicy-IfNotPresent.yaml -f examples/api-test-values.yaml'
Zack Williamsc8cfb222018-07-05 13:29:28 -0700210
Zack Williams66500002018-09-06 15:29:05 -0700211 # skip projects that aren't the XOS core repository
Kailash Khalasif57dcdd2018-09-16 09:22:27 -0700212 if [ "$GERRIT_PROJECT" != "xos" ]; then
Zack Williams66500002018-09-06 15:29:05 -0700213 helm_install_args+=' -f $WORKSPACE/xos_tags.yaml'
214 fi
215
Zack Williamsc8cfb222018-07-05 13:29:28 -0700216 pushd cord/helm-charts
217
Zack Williamsa26fc9d2018-09-18 16:49:01 -0700218 helm install -f examples/kafka-single.yaml --version 0.8.8 -n cord-kafka incubator/kafka
219 scripts/wait_for_pods.sh
220
Zack Williamsc8cfb222018-07-05 13:29:28 -0700221 helm dep up xos-core
222 helm install \${helm_install_args} xos-core -n xos-core
223
224 # Pick which chart(s) to load depending on the project being tested
225 # In regex, please list repos in same order as requirements.yaml in the chart(s) loaded!
226
227 if [[ "$GERRIT_PROJECT" =~ ^(rcord|onos-service|fabric|olt-service|vsg-hw|vrouter)\$ ]]; then
228 helm dep update xos-profiles/rcord-lite
229 helm install \${helm_install_args} xos-profiles/rcord-lite -n rcord-lite
Zack Williamsc8cfb222018-07-05 13:29:28 -0700230
231 elif [[ "$GERRIT_PROJECT" =~ ^(vMME|vspgwc|vspgwu|vHSS|hss_db|internetemulator|sdn-controller|epc-service|mcord|progran)\$ ]]; then
Zack Williamsee86e662018-07-06 10:18:28 -0700232 helm dep update xos-profiles/base-openstack
Zack Williamsc8cfb222018-07-05 13:29:28 -0700233 helm dep update xos-profiles/mcord
Zack Williamsee86e662018-07-06 10:18:28 -0700234 helm install \${helm_install_args} xos-profiles/base-openstack -n base-openstack
235 helm install \${helm_install_args} xos-profiles/mcord -n mcord
Zack Williamsc8cfb222018-07-05 13:29:28 -0700236
237 elif [[ "$GERRIT_PROJECT" =~ ^(openstack|vtn-service|exampleservice|addressmanager)\$ ]]; then
238 # NOTE: onos-service is included in base-openstack, but tested w/rcord-lite chart
239
240 helm dep update xos-profiles/base-openstack
241 helm dep update xos-profiles/demo-exampleservice
242 helm install \${helm_install_args} xos-profiles/base-openstack -n base-openstack
243 helm install \${helm_install_args} xos-profiles/demo-exampleservice -n demo-exampleservice
244
245 elif [[ "$GERRIT_PROJECT" =~ ^(kubernetes-service|simpleexampleservice)\$ ]]; then
246 helm dep update xos-profiles/base-kubernetes
247 helm dep update xos-profiles/demo-simpleexampleservice
248 helm install \${helm_install_args} xos-profiles/base-kubernetes -n base-kubernetes
249 helm install \${helm_install_args} xos-profiles/demo-simpleexampleservice -n demo-simpleexampleservice
250
251 elif [[ "$GERRIT_PROJECT" =~ ^(hippie-oss)\$ ]]; then
252 helm dep update xos-services/hippie-oss
253 helm install \${helm_install_args} xos-services/hippie-oss -n hippie-oss
254
Matteo Scandolo85ce8fc2018-08-13 06:30:45 -0700255 elif [[ "$GERRIT_PROJECT" =~ ^(att-workflow-driver)\$ ]]; then
256 helm dep update xos-services/att-workflow-driver
257 helm install \${helm_install_args} xos-services/att-workflow-driver -n att-workflow-driver
258
Zack Williams9d68aa32018-07-12 11:50:37 -0700259 elif [[ "$GERRIT_PROJECT" =~ ^(xos|xos-tosca|cord-tester|helm-charts)\$ ]]; then
Zack Williamsbafed362018-07-05 16:32:27 -0700260 echo "No additional charts to install for testing $GERRIT_PROJECT"
261
Zack Williamsc8cfb222018-07-05 13:29:28 -0700262 else
263 echo "Couldn't find a chart to test project: $GERRIT_PROJECT!"
264 exit 1
Kailash Khalasi54170812018-05-24 12:50:22 -0700265 fi
Zack Williamsc8cfb222018-07-05 13:29:28 -0700266
Kailash Khalasi2bc499b2018-07-25 16:10:11 -0700267 # wait for services to load
Kailash Khalasiedb48b12018-07-31 13:01:01 -0700268 JOBS_TIMEOUT=900 ./scripts/wait_for_jobs.sh
Zack Williamsc8cfb222018-07-05 13:29:28 -0700269
270 echo "# Checking helm deployments"
Kailash Khalasi12b2e222018-06-13 09:45:25 -0700271 kubectl get pods
Zack Williamsc8cfb222018-07-05 13:29:28 -0700272 helm list
273
274 for hchart in \$(helm list -q);
275 do
276 echo "## 'helm status' for chart: \${hchart} ##"
277 helm status "\${hchart}"
278 done
279
Kailash Khalasi54170812018-05-24 12:50:22 -0700280 popd
Zack Williamsfd87d652018-07-12 14:21:12 -0700281 """
Kailash Khalasi54170812018-05-24 12:50:22 -0700282 }
283 }
Kailash Khalasi512a7e52018-07-30 09:12:16 -0700284 stage('wait for core') {
285 steps {
286 timeout(time:5) {
287 waitUntil {
288 script {
289 try {
290 sh """
291 CORE_POD=\$(kubectl get pods | grep xos-core | awk '{print \$1}')
292 CHAM_POD=\$(kubectl get pods | grep chameleon | awk '{print \$1}')
293 CHAM_CONTAINER=\$(docker ps | grep k8s_xos-chameleon | awk '{print \$1}')
294 XOS_CHAMELEON=\$(docker exec \$CHAM_CONTAINER ip a | grep -oE "([0-9]{1,3}\\.){3}[0-9]{1,3}\\b" | grep 172)
295 kubectl logs \$CORE_POD | grep "XOS core entering wait loop"
Kailash Khalasi512a7e52018-07-30 09:12:16 -0700296 curl -I -u admin@opencord.org:letmein http://\$XOS_CHAMELEON:9101/xosapi/v1/core/users | grep "200 OK"
Kailash Khalasi309872a2018-07-31 12:39:02 -0700297 sleep 30
Kailash Khalasi25ee0722018-07-30 14:26:41 -0700298 curl -I -u admin@opencord.org:letmein http://\$XOS_CHAMELEON:9101/xosapi/v1/core/sites | grep "200 OK"
299 """
Kailash Khalasi512a7e52018-07-30 09:12:16 -0700300 return true
301 } catch (exception) {
302 return false
303 }
304 }
305 }
306 }
307 }
308 }
Zack Williamsfd87d652018-07-12 14:21:12 -0700309
310 stage('setup') {
Kailash Khalasi54170812018-05-24 12:50:22 -0700311 steps {
312 sh """
Zack Williamsfd87d652018-07-12 14:21:12 -0700313 CORE_CONTAINER=\$(docker ps | grep k8s_xos-core | awk '{print \$1}')
Zack Williamsc8cfb222018-07-05 13:29:28 -0700314
Zack Williamsfd87d652018-07-12 14:21:12 -0700315 docker cp $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/targets/xosapitests.xtarget \$CORE_CONTAINER:/opt/xos/lib/xos-genx/xosgenx/targets/xosapitests.xtarget
316 docker cp $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/targets/xosserviceapitests.xtarget \$CORE_CONTAINER:/opt/xos/lib/xos-genx/xosgenx/targets/xosserviceapitests.xtarget
317 docker cp $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/targets/xoslibrary.xtarget \$CORE_CONTAINER:/opt/xos/lib/xos-genx/xosgenx/targets/xoslibrary.xtarget
318 docker exec -i \$CORE_CONTAINER /bin/bash -c "xosgenx --target /opt/xos/lib/xos-genx/xosgenx/targets/./xosapitests.xtarget /opt/xos/core/models/core.xproto" > $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/XOSCoreAPITests.robot
Zack Williamsc8cfb222018-07-05 13:29:28 -0700319
Zack Williamsfd87d652018-07-12 14:21:12 -0700320 # create additional testing files if services are loaded
321 if ! [[ "$GERRIT_PROJECT" =~ ^(xos|xos-tosca|cord-tester|helm-charts)\$ ]]; then
322 export testname=_service_api.robot
323 export library=_library.robot
Zack Williamsc8cfb222018-07-05 13:29:28 -0700324
Zack Williamsfd87d652018-07-12 14:21:12 -0700325 SERVICES=\$(docker exec -i \$CORE_CONTAINER /bin/bash -c "cd /opt/xos/dynamic_services/;find -name '*.xproto'" | awk -F[//] '{print \$2}')
326 echo \$SERVICES
Zack Williamsc8cfb222018-07-05 13:29:28 -0700327
Zack Williamsfd87d652018-07-12 14:21:12 -0700328 for i in \$SERVICES; do bash -c "docker exec -i \$CORE_CONTAINER /bin/bash -c 'xosgenx --target /opt/xos/lib/xos-genx/xosgenx/targets/./xosserviceapitests.xtarget /opt/xos/dynamic_services/\$i/\$i.xproto /opt/xos/core/models/core.xproto'" > $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/\$i\$testname; done
329
330 for i in \$SERVICES; do bash -c "docker exec -i \$CORE_CONTAINER /bin/bash -c 'xosgenx --target /opt/xos/lib/xos-genx/xosgenx/targets/./xoslibrary.xtarget /opt/xos/dynamic_services/\$i/\$i.xproto /opt/xos/core/models/core.xproto'" > $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/\$i\$library; done
331 fi
332 """
Kailash Khalasi54170812018-05-24 12:50:22 -0700333 }
Kailash Khalasi54170812018-05-24 12:50:22 -0700334 }
Zack Williamsfd87d652018-07-12 14:21:12 -0700335
336 stage('test') {
337 steps {
338 sh """
339 pushd cord/test/cord-tester/src/test/cord-api/Tests
340
341 CORE_CONTAINER=\$(docker ps | grep k8s_xos-core | awk '{print \$1}')
342 CHAM_CONTAINER=\$(docker ps | grep k8s_xos-chameleon | awk '{print \$1}')
343 XOS_CHAMELEON=\$(docker exec \$CHAM_CONTAINER ip a | grep -oE "([0-9]{1,3}\\.){3}[0-9]{1,3}\\b" | grep 172)
344
345 cd $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Properties/
346 sed -i \"s/^\\(SERVER_IP = \\).*/\\1\'\$XOS_CHAMELEON\'/\" RestApiProperties.py
347 sed -i \"s/^\\(SERVER_PORT = \\).*/\\1\'9101\'/\" RestApiProperties.py
348 sed -i \"s/^\\(XOS_USER = \\).*/\\1\'admin@opencord.org\'/\" RestApiProperties.py
349 sed -i \"s/^\\(XOS_PASSWD = \\).*/\\1\'letmein\'/\" RestApiProperties.py
350 sed -i \"s/^\\(PASSWD = \\).*/\\1\'letmein\'/\" RestApiProperties.py
351
352 cd $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests
Kailash Khalasi07c97a42018-08-06 12:15:43 -0700353 pybot -d Log -T XOSCoreAPITests.robot || true
Zack Williamsfd87d652018-07-12 14:21:12 -0700354
355 # do additional tests if services are loaded
356 if ! [[ "$GERRIT_PROJECT" =~ ^(xos|xos-tosca|cord-tester|helm-charts)\$ ]]; then
357 export testname=_service_api.robot
358 export library=_library.robot
359 SERVICES=\$(docker exec -i \$CORE_CONTAINER /bin/bash -c "cd /opt/xos/dynamic_services/;find -name '*.xproto'" | awk -F[//] '{print \$2}')
360 echo \$SERVICES
361
Zack Williams91cecd22018-09-26 10:59:44 -0700362 for i in \$SERVICES; do bash -c "pybot -d Log -T -e ProgranServiceInstance -v TESTLIBRARY:\$i\$library \$i\$testname"; sleep 2; done || true
Zack Williamsfd87d652018-07-12 14:21:12 -0700363 fi
364
365 popd
366 """
367 }
368 }
369
Kailash Khalasi54170812018-05-24 12:50:22 -0700370 stage('Publish') {
Zack Williamsfd87d652018-07-12 14:21:12 -0700371 steps {
372 sh """
373 if [ -d RobotLogs ]; then rm -r RobotLogs; fi; mkdir RobotLogs
374 cp -r $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/Log/*ml ./RobotLogs
375 """
Zack Williamsc8cfb222018-07-05 13:29:28 -0700376
Zack Williamsfd87d652018-07-12 14:21:12 -0700377 step([$class: 'RobotPublisher',
378 disableArchiveOutput: false,
379 logFileName: 'RobotLogs/log*.html',
380 otherFiles: '',
381 outputFileName: 'RobotLogs/output*.xml',
382 outputPath: '.',
Kailash Khalasiad6cfda2018-07-25 11:31:35 -0700383 passThreshold: 100,
Zack Williamsfd87d652018-07-12 14:21:12 -0700384 reportFileName: 'RobotLogs/report*.html',
385 unstableThreshold: 0]);
386 }
Kailash Khalasi54170812018-05-24 12:50:22 -0700387 }
Zack Williamsfd87d652018-07-12 14:21:12 -0700388
389 }
390
391 post {
392 always {
393 sh '''
Kailash Khalasiecb4eb62018-07-31 15:20:19 -0700394 for pod in \$(kubectl get pods --no-headers | awk '{print \$1}');
395 do
396 kubectl logs \$pod > $WORKSPACE/\$pod.log;
397 done
398
Zack Williamsfd87d652018-07-12 14:21:12 -0700399 kubectl get pods --all-namespaces
400
401 echo "# removing helm deployments"
402 kubectl get pods
403 helm list
404
405 for hchart in \$(helm list -q);
406 do
407 echo "## Purging chart: \${hchart} ##"
408 helm delete --purge "\${hchart}"
409 done
410
Zack Williamsf8b356c2018-07-17 17:01:27 -0700411 sudo minikube delete
Zack Williamsfd87d652018-07-12 14:21:12 -0700412 '''
Kailash Khalasiecb4eb62018-07-31 15:20:19 -0700413 archiveArtifacts artifacts: '*.log'
Zack Williamsfd87d652018-07-12 14:21:12 -0700414 step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "suchitra@opennetworking.org, you@opennetworking.org, kailash@opennetworking.org", sendToIndividuals: false])
415 }
416 }
Kailash Khalasi54170812018-05-24 12:50:22 -0700417}