I'm writing a pipeline Step plugin and in case build fails for any reason I
need to publish the build log somewhere.
So I'm thinking of using "Run.getLog(nr)".
Any idea if I'll have problems with the log buffering/net being flushed
when the build fails?
The way the plugin is going to be used is something like this:
node {
try {
stage('Something 1') {
}
stage('Something 2') {
}
stage('Something 3') {
}
} catch (e) {
myPlugin()
throw e
}
}
So if any of the stages fail, when I call myPlugin() in "catch" if inside
my plugin I call "Run.getLog(nr)" will I get the full log (of what
happened up to that point)? Or it's possible I'll get partial log in some
cases due caching/buffering?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/5c9aeda8-4d0a-4d02-8035-43eef22be8ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.