1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Merge pull request #616 from marcusholl/pr/neoLogInAnyFailureCase

provide the log in case of a failure always, not only in docker context
This commit is contained in:
Marcus Holl 2019-05-10 09:26:37 +02:00 committed by GitHub
commit f9047bc37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,14 +236,12 @@ private deploy(script, utils, Map configuration, NeoCommandHelper neoCommandHelp
}
catch (Exception ex) {
if (dockerImage) {
echo "Error while deploying to SAP Cloud Platform. Here are the neo.sh logs:"
try {
sh "cat logs/neo/*"
} catch(Exception e) {
echo "Unable to provide the logs."
ex.addSuppressed(e)
}
echo "Error while deploying to SAP Cloud Platform. Here are the neo.sh logs:"
try {
sh "cat logs/neo/*"
} catch(Exception e) {
echo "Unable to provide the logs."
ex.addSuppressed(e)
}
throw ex
}