Skip to content

Commit

Permalink
Merge pull request #15 from christian-posta/ceposta-add-more-logging
Browse files Browse the repository at this point in the history
add more logging during exceptions
  • Loading branch information
iocanel committed Dec 6, 2016
2 parents 8d0364f + 5c65cf7 commit a4b491d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.apache.commons.io.Charsets;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.jenkinsci.plugins.gitclient.Git;
import org.jenkinsci.plugins.gitclient.GitClient;
import org.jenkinsci.plugins.workflow.steps.*;
Expand Down Expand Up @@ -183,7 +184,8 @@ public String run() throws Exception {
}
}
} catch (Exception e) {
throw new AbortException("Error during kubernetes apply: " + e.getMessage());
String stacktrace = ExceptionUtils.getStackTrace(e);
throw new AbortException("Error during kubernetes apply: " + stacktrace);
}
return "OK";
}
Expand Down

0 comments on commit a4b491d

Please sign in to comment.