Skip to content

Commit

Permalink
improve exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Jan 20, 2025
1 parent 845e70f commit 1eafa08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ru/pulsar/jenkins/library/steps/ZipInfobase.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ class ZipInfobase implements Serializable {

try {
return config."${stageName}Options".archiveInfobase
} catch(Exception e) {
Logger.println(e.message)
} catch(MissingPropertyException | NullPointerException e) {
Logger.println("Ошибка при получении настроек архивации для этапа ${stageName}: ${e.message}")
Logger.println(e.toString())
return defaultOptions
}
}
Expand Down

0 comments on commit 1eafa08

Please sign in to comment.