From 832556f0c7725f90be0e09775f4d9426bd26c460 Mon Sep 17 00:00:00 2001 From: DorianZimmer-LM Date: Thu, 14 Nov 2024 09:34:04 +0100 Subject: [PATCH] Print an error message if the packaging properties file doesn't exist Signed-off-by: Dorian Zimmer --- Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy b/Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy index 5fbf2099..e1a2d8b7 100644 --- a/Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy +++ b/Pipeline/PackageBuildOutputs/PackageBuildOutputs.groovy @@ -746,6 +746,9 @@ def parseInput(String[] cliArgs){ if (propertiesFile.exists()) { props.packagingPropertiesFile = opts.properties propertiesFile.withInputStream { props.load(it) } + } else { + println "*! [ERROR] The file '${opts.properties}' doesn't exist." + rc = Math.max(rc, 1) } } else { // read default sample properties file shipped with the script def scriptDir = new File(getClass().protectionDomain.codeSource.location.path).parent @@ -981,4 +984,4 @@ def retrieveBuildResultProperty(PropertiesRecord buildResultPropertiesRecord, St return null } } -} \ No newline at end of file +}