@@ -550,8 +550,10 @@ pipeline {
550
550
post {
551
551
success {
552
552
// Allow empty results for 'osx/high-sierra' which doesn't produce packages
553
- def distro = get_os_distro()
554
- archiveArtifacts artifacts : " ${ distro} /**/libuv*" , allowEmptyArchive : true
553
+ script {
554
+ def distro = get_os_distro()
555
+ archiveArtifacts artifacts : " ${ distro} /**/libuv*" , allowEmptyArchive : true
556
+ }
555
557
}
556
558
}
557
559
}
@@ -561,14 +563,18 @@ pipeline {
561
563
}
562
564
post {
563
565
success {
564
- def distro = get_os_distro()
565
- archiveArtifacts artifacts : " ${ distro} /**/cassandra-*-tests"
566
- archiveArtifacts artifacts : " ${ distro} /**/dse-*-tests" , allowEmptyArchive : true
566
+ script {
567
+ def distro = get_os_distro()
568
+ archiveArtifacts artifacts : " ${ distro} /**/cassandra-*-tests"
569
+ archiveArtifacts artifacts : " ${ distro} /**/dse-*-tests" , allowEmptyArchive : true
570
+ }
567
571
}
568
572
failure {
569
- def distro = get_os_distro()
570
- archiveArtifacts artifacts : " ${ distro} /**/CMakeOutput.log"
571
- archiveArtifacts artifacts : " ${ distro} /**/CMakeError.log"
573
+ script {
574
+ def distro = get_os_distro()
575
+ archiveArtifacts artifacts : " ${ distro} /**/CMakeOutput.log"
576
+ archiveArtifacts artifacts : " ${ distro} /**/CMakeError.log"
577
+ }
572
578
}
573
579
}
574
580
}
@@ -598,8 +604,10 @@ pipeline {
598
604
}
599
605
post {
600
606
success {
601
- def distro = get_os_distro()
602
- archiveArtifacts artifacts : " ${ distro} /**/*-cpp-driver*"
607
+ script {
608
+ def distro = get_os_distro()
609
+ archiveArtifacts artifacts : " ${ distro} /**/*-cpp-driver*"
610
+ }
603
611
}
604
612
}
605
613
}
@@ -757,9 +765,11 @@ pipeline {
757
765
}
758
766
post {
759
767
failure {
760
- def distro = get_os_distro()
761
- archiveArtifacts artifacts : " ${ distro} /**/CMakeOutput.log"
762
- archiveArtifacts artifacts : " ${ distro} /**/CMakeError.log"
768
+ script {
769
+ def distro = get_os_distro()
770
+ archiveArtifacts artifacts : " ${ distro} /**/CMakeOutput.log"
771
+ archiveArtifacts artifacts : " ${ distro} /**/CMakeError.log"
772
+ }
763
773
}
764
774
}
765
775
}
@@ -774,8 +784,10 @@ pipeline {
774
784
junit testResults : ' *integration-tests-*-results.xml' , allowEmptyResults : true
775
785
}
776
786
failure {
777
- def distro = get_os_distro()
778
- archiveArtifacts artifacts : " ${ distro} /**/*-integration-tests-driver-logs.tgz"
787
+ script {
788
+ def distro = get_os_distro()
789
+ archiveArtifacts artifacts : " ${ distro} /**/*-integration-tests-driver-logs.tgz"
790
+ }
779
791
}
780
792
cleanup {
781
793
cleanWs()
0 commit comments