Debian Codegraph @

modules/libfabric/contrib/intel/jenkins/Jenkinsfile

raw
1 import groovy.transform.Field
2
3 properties([disableConcurrentBuilds(abortPrevious: true)])
4 @Field def DO_RUN=true
5 @Field def TARGET="main"
6 @Field def SCRIPT_LOCATION="upstream/libfabric/contrib/intel/jenkins"
7 @Field def RELEASE=false
8 @Field def BUILD_MODES=["reg", "dbg", "dl"]
9 @Field def PYTHON_VERSION="3.9"
10 @Field def TIMEOUT="7200"
11
12 def run_python(version, command, output=null) {
13 if (output != null)
14 sh "python$version $command >> $output"
15 else
16 sh "python$version $command"
17 }
18
19 def slurm_batch(partition, node_num, output, command) {
20
21 try {
22 sh """sbatch --partition=${partition} -N ${node_num} \
23 --wait -o ${output} --open-mode=append \
24 --wrap=\'env; timeout $TIMEOUT ${command}\'
25 """
26 } catch (Exception e) {
27 sh "scancel \$(cat ${output} | grep SLURM_JOBID | cut -d \"=\" -f 2)"
28 sh "cat ${output}"
29 error("Build failed ${e}")
30 }
31 sh "cat ${output}"
32 }
33
34 def run_fabtests(stage_name, hw, partition, node_num, prov, util=null,
35 user_env=null, way=null) {
36 def command = "python3.9 ${RUN_LOCATION}/runtests.py --build_hw=${hw}"
37 def opts = "--prov=${prov} --test=fabtests"
38 def modes = BUILD_MODES
39 if (util)
40 opts = "${opts} --util=${util}"
41
42 if (user_env)
43 opts = "${opts} --user_env ${user_env}"
44
45 if (way) {
46 opts = "${opts} --way ${way}"
47 stage_name = "${stage_name}_${way}"
48 modes = ["reg"]
49 }
50
51 for (mode in modes) {
52 echo "Running $stage_name fabtests $mode"
53 slurm_batch("${partition}", "${node_num}",
54 "${env.LOG_DIR}/${stage_name}_fabtests_${mode}",
55 "${command} ${opts} --ofi_build_mode=${mode}")
56 }
57
58 echo "${stage_name} completed."
59 }
60
61 def run_middleware(providers, stage_name, test, hw, partition, node_num,
62 mpi=null, imb_grp=null) {
63 def base_cmd = "python3.9 ${RUN_LOCATION}/runtests.py --test=${test} --build_hw=${hw}"
64 def opts = ""
65 def prefix = "${env.LOG_DIR}/${stage_name}_"
66 def suffix = "_${test}_reg"
67 if (mpi) {
68 base_cmd = "${base_cmd} --mpi=${mpi}"
69 suffix = "_${mpi}${suffix}"
70 }
71
72 if (imb_grp)
73 base_cmd = "${base_cmd} --imb_grp=${imb_grp}"
74
75 if (env.WEEKLY.toBoolean())
76 base_cmd = "${base_cmd} --weekly=${env.WEEKLY}"
77
78 for (prov in providers) {
79 if (prov[1]) {
80 echo "Running ${prov[0]}-${prov[1]} ${stage_name}"
81 opts = "--prov=${prov[0]} --util=${prov[1]}"
82 output = "${prefix}${prov[0]}-${prov[1]}${suffix}"
83 } else {
84 echo "Running ${prov[0]} ${stage_name}"
85 opts = "--prov=${prov[0]}"
86 output = "${prefix}${prov[0]}${suffix}"
87 }
88
89 slurm_batch("${partition}", "${node_num}", "${output}",
90 "${base_cmd} ${opts}")
91 }
92 }
93
94 def gather_logs(cluster, key, dest, source) {
95 def address = "${env.USER}@${cluster}"
96
97 try {
98 sh "scp -i ${key} ${address}:${source}/* ${dest}/"
99 } catch (Exception e) {
100 echo "Caught exception ${e} when transfering files from ${cluster}"
101 }
102 }
103
104 def summarize(item, verbose=false, release=false, send_mail=false) {
105 def cmd = "${RUN_LOCATION}/summary.py --summary_item=all"
106 if (verbose) {
107 cmd = "${cmd} -v "
108 }
109 if (release) {
110 cmd = "${cmd} --release "
111 }
112 if (send_mail.toBoolean()) {
113 cmd = "${cmd} --send_mail "
114 }
115
116 run_python(PYTHON_VERSION, cmd)
117 }
118
119 def save_summary() {
120 sh """
121 mkdir -p ${env.WORKSPACE}/internal
122 rm -rf ${env.WORKSPACE}/internal/*
123 git clone https://${env.PAT}@github.com/${env.INTERNAL} ${env.WORKSPACE}/internal
124 cd ${env.WORKSPACE}/internal
125 mkdir -p ${env.WORKSPACE}/internal/summaries
126 cp ${env.WORKSPACE}/summary_*.log ${env.WORKSPACE}/internal/summaries/
127 git add ${env.WORKSPACE}/internal/summaries/
128 git commit -am \"add ${env.JOB_NAME}'s summary\"
129 git pull -r origin master
130 git push origin master
131 """
132 }
133
134 def checkout_upstream() {
135 def loc = "${env.WORKSPACE}/upstream/libfabric"
136 sh """
137 if [[ ! -d ${env.WORKSPACE}/upstream ]]; then
138 mkdir -p ${loc}
139 else
140 rm -rf ${env.WORKSPACE}/upstream && mkdir -p ${loc}
141 fi
142
143 git clone --branch ${TARGET} ${env.UPSTREAM} ${loc}
144 """
145 }
146
147 def checkout_ci_resources() {
148 sh """
149 if [[ ! -d ${env.WORKSPACE}/upstream ]]; then
150 mkdir ${env.WORKSPACE}/ci_resources
151 else
152 rm -rf ${env.WORKSPACE}/ci_resources && mkdir ${env.WORKSPACE}/ci_resources
153 fi
154
155 git clone ${env.CI_RESOURCES} ${env.WORKSPACE}/ci_resources
156
157 """
158 }
159
160 def checkout_external_resources() {
161 checkout_ci_resources()
162 checkout_upstream()
163 }
164
165 def generate_diff(def branch_name, def output_loc) {
166 sh """
167 git remote add mainRepo ${env.UPSTREAM}
168 git fetch mainRepo
169 git diff --name-only HEAD..mainRepo/${branch_name} > ${output_loc}/commit_id
170 git remote remove mainRepo
171 """
172 }
173
174 def generate_release_num(def branch_name, def output_loc) {
175 sh """
176 git remote add mainRepo ${env.UPSTREAM}
177 git fetch mainRepo
178 git diff mainRepo/${branch_name}:Makefile.am Makefile.am > \
179 ${output_loc}/Makefile.am.diff
180 git diff mainRepo/${branch_name}:configure.ac configure.ac > \
181 ${output_loc}/configure.ac.diff
182 cat configure.ac | grep AC_INIT | cut -d ' ' -f 2 | \
183 cut -d '[' -f 2 | cut -d ']' -f 1 > ${output_loc}/release_num.txt
184 git remote remove mainRepo
185 """
186 }
187
188 def slurm_build(modes, partition, location, hw=null, additional_args=null) {
189 def cmd = "pwd; "
190 def prefix = "python${PYTHON_VERSION} ${RUN_LOCATION}/build.py"
191 def libfabric = "--build_item=libfabric --build_loc=${CUSTOM_WORKSPACE}/${location}/libfabric"
192 def fabtests = "--build_item=fabtests --build_loc=${CUSTOM_WORKSPACE}/${location}/libfabric/fabtests"
193 if (RELEASE) {
194 prefix = "${prefix} --release"
195 }
196
197 if (hw) {
198 prefix = "${prefix} --build_hw=${hw}"
199 }
200
201 if (additional_args) {
202 prefix = "${prefix} ${additional_args} "
203 }
204
205 for (mode in modes) {
206 cmd = "${cmd} ${prefix} ${libfabric} --ofi_build_mode=${mode};"
207 cmd = "${cmd} ${prefix} ${fabtests} --ofi_build_mode=${mode};"
208 }
209
210 slurm_batch(partition, "1", "${env.LOG_DIR}/libfabric_${partition}", cmd)
211 }
212
213 def build(item, mode=null, hw=null, additional_args=null) {
214 def cmd = "${RUN_LOCATION}/build.py --build_item=${item}"
215
216 if (item == "fabtests") {
217 cmd ="${cmd} --build_loc=${CUSTOM_WORKSPACE}/source/libfabric/fabtests"
218 } else {
219 cmd ="${cmd} --build_loc=${CUSTOM_WORKSPACE}/source/libfabric"
220 }
221
222 if (mode) {
223 cmd = "${cmd} --ofi_build_mode=${mode} "
224 }
225
226 if (hw) {
227 cmd = "${cmd} --build_hw=${hw} "
228 }
229
230 if (RELEASE) {
231 cmd = "${cmd} --release "
232 }
233
234 if (additional_args) {
235 cmd = "${cmd} ${additional_args} "
236 }
237
238 run_python(PYTHON_VERSION, cmd)
239 }
240
241 def check_target() {
242 echo "CHANGE_TARGET = ${env.CHANGE_TARGET}"
243 if (changeRequest()) {
244 TARGET = env.CHANGE_TARGET
245 }
246
247 if (TARGET) {
248 return TARGET
249 }
250
251 return "main"
252 }
253
254 def release() {
255 def file = "${env.WORKSPACE}/commit_id"
256 if (!fileExists(file)) {
257 echo "CI Run has not rebased with ofiwg/libfabric. Please Rebase."
258 return 1
259 }
260
261 def changes = readFile file
262 def changeStrings = new ArrayList<String>()
263
264 for (line in changes.readLines()) {
265 changeStrings.add(line)
266 }
267
268 if ((changeStrings.toArray().any { it =~ /(Makefile\.am)\b/ }) ||
269 (changeStrings.toArray().any { it =~ /(configure\.ac)\b/ })) {
270 echo "This is probably a release"
271 return true
272 }
273
274 return false
275 }
276
277 def skip() {
278 def file = "${env.WORKSPACE}/source/libfabric/commit_id"
279 if (!fileExists(file)) {
280 echo "CI Run has not rebased with ofiwg/libfabric. Please Rebase."
281 return 1
282 }
283
284 def changes = readFile file
285 def changeStrings = new ArrayList<String>()
286
287 for (line in changes.readLines()) {
288 changeStrings.add(line)
289 }
290
291 echo "Changeset is: ${changeStrings.toArray()}"
292 if (changeStrings.toArray().every { it =~ /(?:fabtests\/pytests|man|prov\/efa|prov\/opx).*$/ }) {
293 echo "DONT RUN!"
294 return true
295 }
296
297 if (changeStrings.isEmpty()) {
298 echo "DONT RUN!"
299 return true
300 }
301
302 return false
303 }
304
305 pipeline {
306 agent {
307 node {
308 label 'main'
309 customWorkspace "workspace/${JOB_NAME}/${env.BUILD_NUMBER}"
310 }
311 }
312 options {
313 timestamps()
314 timeout(activity: true, time: 6, unit: 'HOURS')
315 skipDefaultCheckout()
316 }
317 environment {
318 JOB_CADENCE = 'PR'
319 WITH_ENV="'PATH+EXTRA=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:$PYTHONPATH'"
320 RUN_LOCATION="${env.WORKSPACE}/${SCRIPT_LOCATION}/"
321 CUSTOM_WORKSPACE="${CB_HOME}/workspace/${JOB_NAME}/${env.BUILD_NUMBER}"
322 LOG_DIR = "${env.CUSTOM_WORKSPACE}/log_dir"
323 }
324 stages {
325 stage ('checkout') {
326 steps {
327 script {
328 dir ("${CUSTOM_WORKSPACE}/source/libfabric") {
329 checkout scm
330 }
331 dir ("${CUSTOM_WORKSPACE}/grass/libfabric") {
332 checkout scm
333 }
334 dir ("${CUSTOM_WORKSPACE}/water/libfabric") {
335 checkout scm
336 }
337 dir ("${CUSTOM_WORKSPACE}/electric/libfabric") {
338 checkout scm
339 }
340 dir ("${CUSTOM_WORKSPACE}/ucx/libfabric") {
341 checkout scm
342 }
343 dir (CUSTOM_WORKSPACE) {
344 checkout_external_resources()
345 }
346 }
347 }
348 }
349 stage ('opt-out') {
350 steps {
351 script {
352 TARGET=check_target()
353 dir ("${CUSTOM_WORKSPACE}/source/libfabric") {
354 generate_diff("${TARGET}", "${env.WORKSPACE}/source/libfabric")
355 generate_release_num("${TARGET}", "${env.WORKSPACE}/source/libfabric")
356 }
357
358 if (env.WEEKLY == null) {
359 weekly = false
360 } else {
361 weekly = env.WEEKLY.toBoolean()
362 }
363 if (weekly) {
364 TIMEOUT="21600"
365 }
366 skip = skip()
367 RELEASE = release()
368 if (skip && !weekly) {
369 DO_RUN=false
370 }
371 }
372 }
373 }
374 stage ('prepare build') {
375 when { equals expected: true, actual: DO_RUN }
376 steps {
377 script {
378 echo "Copying build dirs."
379 build("builddir")
380 echo "Copying log dirs."
381 build("logdir")
382 }
383 }
384 }
385 stage ('parallel-builds') {
386 when { equals expected: true, actual: DO_RUN }
387 parallel {
388 stage ('build-water') {
389 steps {
390 script {
391 slurm_build(BUILD_MODES, "water", "water", "water")
392 slurm_batch("squirtle,totodile", "1",
393 "${env.LOG_DIR}/build_mpich_water_log",
394 """python$PYTHON_VERSION ${RUN_LOCATION}/build.py \
395 --build_item=mpich --build_hw=water"""
396 )
397 }
398 }
399 }
400 stage ('build-grass') {
401 steps {
402 script {
403 slurm_build(BUILD_MODES, "grass", "grass", "grass")
404 slurm_batch("grass", "1",
405 "${env.LOG_DIR}/build_mpich_grass_log",
406 """python$PYTHON_VERSION ${RUN_LOCATION}/build.py \
407 --build_item=mpich --build_hw=grass"""
408 )
409 }
410 }
411 }
412 stage ('build-electric') {
413 steps {
414 script {
415 slurm_build(BUILD_MODES, "electric", "electric", "electric")
416 }
417 }
418 }
419 stage ('build-ucx') {
420 steps {
421 script {
422 slurm_build(BUILD_MODES, "totodile", "ucx", "ucx")
423 }
424 }
425 }
426 stage ('build-daos') {
427 agent {
428 node {
429 label 'daos_head'
430 customWorkspace CUSTOM_WORKSPACE
431 }
432 }
433 options { skipDefaultCheckout() }
434 steps {
435 script {
436 dir ("${CUSTOM_WORKSPACE}/source/libfabric") { checkout scm }
437 checkout_external_resources()
438 dir (CUSTOM_WORKSPACE) {
439 build("logdir")
440 build("libfabric", "reg", "daos")
441 build("fabtests", "reg", "daos")
442 }
443 }
444 }
445 }
446 stage ('build-gpu') {
447 agent {
448 node {
449 label 'ze'
450 customWorkspace CUSTOM_WORKSPACE
451 }
452 }
453 options { skipDefaultCheckout() }
454 steps {
455 script {
456 dir ("${CUSTOM_WORKSPACE}/source/libfabric") { checkout scm }
457 checkout_external_resources()
458 dir (CUSTOM_WORKSPACE) {
459 build("logdir")
460 build("builddir")
461 build("libfabric", "reg", "gpu", "--gpu")
462 build("fabtests", "reg", "gpu")
463 }
464 }
465 }
466 }
467 }
468 }
469 stage('parallel-tests') {
470 when { equals expected: true, actual: DO_RUN }
471 parallel {
472 stage('MPI_verbs-rxm_IMB') {
473 steps {
474 script {
475 dir (RUN_LOCATION) {
476 def providers = [["verbs", "rxm"]]
477 for (def mpi in ["impi"]) {
478 for (imb_grp = 1; imb_grp < 4; imb_grp++) {
479 run_middleware(providers, "MPI", "IMB", "water",
480 "squirtle,totodile", "2", "${mpi}",
481 "${imb_grp}")
482 }
483 }
484 }
485 }
486 }
487 }
488 stage('MPI_verbs-rxm_OSU') {
489 steps {
490 script {
491 dir (RUN_LOCATION) {
492 def providers = [["verbs", "rxm"]]
493 for (def mpi in ["impi", "mpich"]) {
494 run_middleware(providers, "MPI", "osu", "water",
495 "squirtle,totodile", "2", "${mpi}")
496 }
497 }
498 }
499 }
500 }
501 stage('MPI_tcp') {
502 steps {
503 script {
504 dir (RUN_LOCATION) {
505 def providers = [["tcp", null]]
506 for (imb_grp = 1; imb_grp < 4; imb_grp++) {
507 run_middleware(providers, "MPI", "IMB", "grass",
508 "bulbasaur", "2", "impi", "${imb_grp}")
509 }
510 for (def mpi in ["impi", "mpich"]) {
511 run_middleware(providers, "MPI", "osu", "grass", "bulbasaur",
512 "2", "${mpi}")
513 }
514 }
515 }
516 }
517 }
518 stage('tcp') {
519 steps {
520 script {
521 dir (RUN_LOCATION) {
522 run_fabtests("tcp", "grass", "bulbasaur", "2", "tcp")
523 }
524 }
525 }
526 }
527 stage('verbs-rxm') {
528 steps {
529 script {
530 dir (RUN_LOCATION) {
531 run_fabtests("verbs-rxm", "water", "squirtle,totodile", "2",
532 "verbs", "rxm")
533 run_fabtests("verbs-rxm", "water", "squirtle,totodile", "2",
534 "verbs", "rxm", "FI_MR_CACHE_MAX_COUNT=0")
535 run_fabtests("verbs-rxm", "water", "squirtle,totodile", "2",
536 "verbs", "rxm", "FI_MR_CACHE_MONITOR=userfaultfd")
537 }
538 }
539 }
540 }
541 stage('verbs-rxd') {
542 steps {
543 script {
544 dir (RUN_LOCATION) {
545 run_fabtests("verbs-rxd", "water", "squirtle", "2", "verbs",
546 "rxd")
547 run_fabtests("verbs-rxd", "water", "squirtle", "2", "verbs",
548 "rxd", "FI_MR_CACHE_MAX_COUNT=0")
549 run_fabtests("verbs-rxd", "water", "squirtle", "2", "verbs",
550 "rxd", "FI_MR_CACHE_MONITOR=userfaultfd")
551 }
552 }
553 }
554 }
555 stage('udp') {
556 steps {
557 script {
558 dir (RUN_LOCATION) {
559 run_fabtests("udp", "grass", "bulbasaur", "2", "udp")
560 }
561 }
562 }
563 }
564 stage('shm') {
565 steps {
566 script {
567 dir (RUN_LOCATION) {
568 run_fabtests("shm", "grass", "bulbasaur", "1", "shm")
569 run_fabtests("shm", "grass", "bulbasaur", "1", "shm", null,
570 "FI_SHM_DISABLE_CMA=1")
571 }
572 }
573 }
574 }
575 stage('sockets') {
576 steps {
577 script {
578 dir (RUN_LOCATION) {
579 run_fabtests("sockets", "grass", "bulbasaur", "2", "sockets")
580 }
581 }
582 }
583 }
584 stage('ucx') {
585 steps {
586 script {
587 dir (RUN_LOCATION) {
588 run_fabtests("ucx", "ucx", "totodile", "2", "ucx")
589 }
590 }
591 }
592 }
593 stage('psm3') {
594 steps {
595 script {
596 dir (RUN_LOCATION) {
597 run_fabtests("psm3", "water", "squirtle", "2", "psm3", null,
598 "PSM3_IDENTIFY=1")
599 }
600 }
601 }
602 }
603 stage('mpichtestsuite') {
604 steps {
605 script {
606 dir (RUN_LOCATION) {
607 def providers = [['tcp', null], ["verbs","rxm"]]
608 def MPIS = ["mpich"]
609 if (env.WEEKLY.toBoolean()) {
610 MPIS = ["impi", "mpich"]
611 }
612 for (def mpi in MPIS) {
613 run_middleware(providers, "mpichtestsuite", "mpichtestsuite",
614 "water", "squirtle,totodile", "2", "${mpi}")
615 }
616 }
617 }
618 }
619 }
620 stage('SHMEM') {
621 steps {
622 script {
623 dir (RUN_LOCATION) {
624 run_middleware([["verbs", null], ["tcp", null],
625 ["sockets", null]], "SHMEM", "shmem",
626 "water", "squirtle,totodile", "2")
627 }
628 }
629 }
630 }
631 stage ('multinode_performance') {
632 steps {
633 script {
634 dir (RUN_LOCATION) {
635 run_middleware([["tcp", null]], "multinode_performance",
636 "multinode", "grass", "bulbasaur", "2")
637 }
638 }
639 }
640 }
641 stage ('oneCCL') {
642 steps {
643 script {
644 dir (RUN_LOCATION) {
645 run_middleware([["tcp", "rxm"]/*, ["psm3", null]*/], "oneCCL",
646 "oneccl", "grass", "bulbasaur", "2")
647 }
648 }
649 }
650 }
651 stage ('oneCCL-GPU-v3') {
652 agent { node { label 'ze' } }
653 options { skipDefaultCheckout() }
654 steps {
655 script {
656 dir (RUN_LOCATION) {
657 run_middleware([["verbs", "rxm"]], "oneCCL-GPU-v3", "onecclgpu",
658 "gpu", "fabrics-ci", "2")
659 }
660 }
661 }
662 }
663 stage('daos_tcp') {
664 agent { node { label 'daos_tcp' } }
665 options { skipDefaultCheckout() }
666 steps {
667 script {
668 dir (RUN_LOCATION) {
669 run_python(PYTHON_VERSION,
670 """runtests.py --prov='tcp' --util='rxm' \
671 --test=daos --build_hw=daos \
672 --log_file=${env.LOG_DIR}/daos_tcp-rxm_reg""")
673 }
674 }
675 }
676 }
677 stage('daos_verbs') {
678 agent { node { label 'daos_verbs' } }
679 options { skipDefaultCheckout() }
680 steps {
681 script {
682 dir (RUN_LOCATION) {
683 run_python(PYTHON_VERSION,
684 """runtests.py --prov='verbs' --util='rxm' \
685 --test=daos --build_hw=daos \
686 --log_file=${env.LOG_DIR}/daos_verbs-rxm_reg""")
687 }
688 }
689 }
690 }
691 stage ('DMABUF-Tests') {
692 agent { node { label 'ze' } }
693 options { skipDefaultCheckout() }
694 steps {
695 script {
696 dir ("${env.WORKSPACE}/${SCRIPT_LOCATION}/") {
697 dmabuf_output = "${LOG_DIR}/DMABUF-Tests_verbs-rxm_dmabuf"
698 cmd = """ python3.9 runtests.py --test=dmabuf \
699 --prov=verbs --util=rxm --build_hw=gpu"""
700 slurm_batch("fabrics-ci", "1", "${dmabuf_output}_1_reg",
701 "${cmd}")
702 slurm_batch("fabrics-ci", "2", "${dmabuf_output}_2_reg",
703 "${cmd}")
704 }
705 }
706 }
707 }
708 stage ('ze-shm-v3') {
709 agent { node { label 'ze' } }
710 options { skipDefaultCheckout() }
711 steps {
712 script {
713 dir (RUN_LOCATION) {
714 run_fabtests("ze_v3_shm", "gpu", "fabrics-ci", "1", "shm", null,
715 null, "h2d")
716 run_fabtests("ze_v3_shm", "gpu", "fabrics-ci", "1", "shm", null,
717 null, "d2d")
718 run_fabtests("ze_v3_shm", "gpu", "fabrics-ci", "1", "shm", null,
719 null, "xd2d")
720 }
721 }
722 }
723 }
724 stage('dsa') {
725 when { equals expected: true, actual: DO_RUN }
726 steps {
727 script {
728 dir (RUN_LOCATION) {
729 run_fabtests("shm_dsa", "electric", "pikachu", "1", "shm", null,
730 """FI_SHM_DISABLE_CMA=1 FI_SHM_USE_DSA_SAR=1 \
731 FI_LOG_LEVEL=warn""")
732 }
733 }
734 }
735 }
736 }
737 }
738 stage ('Summary') {
739 when { equals expected: true, actual: DO_RUN }
740 steps {
741 script {
742 gather_logs("${env.DAOS_ADDR}", "${env.DAOS_KEY}", "${env.LOG_DIR}",
743 "${env.LOG_DIR}")
744 gather_logs("${env.ZE_ADDR}", "${env.ZE_KEY}", "${env.LOG_DIR}",
745 "${env.LOG_DIR}")
746
747 summarize("all", verbose=false, release=RELEASE,
748 send_mail=env.WEEKLY.toBoolean())
749 if (RELEASE) {
750 save_summary()
751 }
752 }
753 }
754 }
755 }
756
757 post {
758 always {
759 script {
760 summarize("all")
761 }
762 }
763 success {
764 script {
765 summarize("all", verbose=true, release=false,
766 send_mail=env.WEEKLY.toBoolean())
767 }
768 }
769 aborted {
770 node ('daos_head') {
771 dir ("${DELETE_LOCATION}/middlewares") { deleteDir() }
772 }
773 node ('ze') {
774 dir ("${DELETE_LOCATION}/middlewares") { deleteDir() }
775 }
776 dir ("${DELETE_LOCATION}/middlewares") { deleteDir() }
777 }
778 cleanup {
779 node ('daos_head') {
780 dir("${env.WORKSPACE}") { deleteDir() }
781 dir("${env.WORKSPACE}@tmp") { deleteDir() }
782 }
783 node ('ze') {
784 dir("${env.WORKSPACE}") { deleteDir() }
785 dir("${env.WORKSPACE}@tmp") { deleteDir() }
786 }
787 dir("${env.WORKSPACE}") { deleteDir() }
788 dir("${env.WORKSPACE}@tmp") { deleteDir() }
789 }
790 }
791 }