[JIRA] (JENKINS-44808) Unable to print stacktrace on jenkins pipeline
Title: Message Title Peter Wein edited a comment on JENKINS-44808 Re: Unable to print stacktrace on jenkins pipeline [~timblaktu], nearly exactly: You (or an administrator) must allow this to use this "unsecure" function to work in a jenkinsfile script or pipeline dsl library, then you could use the method in the following manner: {code:java}import hudson.Functions[...]try {throw "error"}catch (Exception e) {println Functions.printThrowable(e)}{code} Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.182865.1497172331000.2951.1572250260292%40Atlassian.JIRA.
[JIRA] (JENKINS-44808) Unable to print stacktrace on jenkins pipeline
Title: Message Title Peter Wein edited a comment on JENKINS-44808 Re: Unable to print stacktrace on jenkins pipeline [~timblaktu], nearly exactly: You (or an administrator) must allow this to use this "unsecure" function to work in a jenkinsfile script or pipeline dsl library, then you could use in the following manner: {code:java}import hudson.Functions [...] try {throw "error"}catch (Exception e) {println Functions.printThrowable(e)}{code} Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.182865.1497172331000.2949.1572250209499%40Atlassian.JIRA.
[JIRA] (JENKINS-44808) Unable to print stacktrace on jenkins pipeline
Title: Message Title Peter Wein edited a comment on JENKINS-44808 Re: Unable to print stacktrace on jenkins pipeline [~timblaktu], nearly exactly: You (or an administrator) must allow this to use this "unsecure" function to work in a jenkinsfile script or pipeline dsl library, then you could use in the following manner: {code:java}import hudson.Functionstry {throw "error"}catch (Exception e) {println Functions.printThrowable(e)}{code} Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.182865.1497172331000.2933.1572250208832%40Atlassian.JIRA.
[JIRA] (JENKINS-44808) Unable to print stacktrace on jenkins pipeline
Title: Message Title Peter Wein commented on JENKINS-44808 Re: Unable to print stacktrace on jenkins pipeline Tim Black, nearly exactly: import hudson.Functions try { throw "error" } catch (Exception e) { println Functions.printThrowable(e) } Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.182865.1497172331000.2924.1572250140242%40Atlassian.JIRA.
[JIRA] (JENKINS-44808) Unable to print stacktrace on jenkins pipeline
Title: Message Title Peter Wein commented on JENKINS-44808 Re: Unable to print stacktrace on jenkins pipeline Thank you Basil Crow and Jesse Glick! I have used the proposal of Jesse , and finally it works! Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.182865.1497172331000.9470.1570002300245%40Atlassian.JIRA.
[JIRA] (JENKINS-44808) Unable to print stacktrace on jenkins pipeline
Title: Message Title Peter Wein commented on JENKINS-44808 Re: Unable to print stacktrace on jenkins pipeline Which is where we have begun! But I did not understand correctly your way of solving it and if it is a regular pattern of jenkins or workaround for a bug. Is there one filed to the bug tracker team? Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.182865.1497172331000.3545.1569257940411%40Atlassian.JIRA.