You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
Fix error Handling in DefaultValueCache (#1719)
This change fixes the error handling in addDefaultsFromFiles(), i.e., using the correct path when calling the readFile step to return the content of the unsuccessfully parsed yaml file. Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
This commit is contained in:
@@ -81,8 +81,8 @@ class DefaultValueCache implements Serializable {
|
||||
"that the response body only contains valid YAML. " +
|
||||
"If you use a file from a GitHub repository, make sure you've used the 'raw' link, " +
|
||||
"for example https://my.github.local/raw/someorg/shared-config/master/backend-service.yml\n" +
|
||||
"File path: ${configFileName}\n" +
|
||||
"Content: ${steps.readFile file: configFileName}\n" +
|
||||
"File path: .pipeline/${configFileName}\n" +
|
||||
"Content: ${steps.readFile file: ".pipeline/${configFileName}"}\n" +
|
||||
"Exeption message: ${e.getMessage()}\n" +
|
||||
"Exception stacktrace: ${Arrays.toString(e.getStackTrace())}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user