How to get console log of current stage?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to get console log of current stage?

Gajanan Mahajan
In Jenkins pipeline, we can get console log of current build with following - 

    String logData = currentBuild.rawBuild.getLog(X)

Is there a way to get only log of current stage?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b68db4e3-d174-4b7a-a9f7-b9a1e7ceff16o%40googlegroups.com.