Skip to content

Commit 8de93fd

Browse files
committed
Update for better catch support
1 parent 594f72c commit 8de93fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/resources/scripts/baseJenkinsfile.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def setupManageProject() {
503503
_VECTORCAST_DIR/vpython "${env.WORKSPACE}"/vc_scripts/managewait.py --wait_time ${VC_waitTime} --wait_loops ${VC_waitLoops} --command_line "--project "${VC_Manage_Project}" ${VC_UseCILicense} --status"
504504
_IF_EXIST ${mpName}_results.vcr _IF_THEN _COPY ${mpName}_results.vcr ${mpName}_results_orig.vcr _ENDIF
505505
"""
506-
} catch (exe) {
506+
} catch(Exception e) {
507507
print "No result artifact to use"
508508
}
509509
} else if (VC_useExternalImportedResults) {
@@ -556,7 +556,7 @@ def transformIntoStep(inputString) {
556556
else {
557557
nodeID = compiler
558558
}
559-
} catch (exe) {
559+
} catch(Exception e) {
560560
nodeID = compiler
561561
}
562562

@@ -719,7 +719,7 @@ pipeline {
719719
else {
720720
usingExternalRepo = false
721721
}
722-
} catch (exe) {
722+
} catch(Exception e) {
723723
usingExternalRepo = false
724724
}
725725

@@ -808,7 +808,7 @@ pipeline {
808808
// archive existing reports
809809
try {
810810
tar file: "reports_archive.tar" , glob: "management/*.html,xml_data/**/*.xml", overwrite: true
811-
} catch {
811+
} catch(Exception e) {
812812
println "tar unavailable"
813813
}
814814

0 commit comments

Comments
 (0)