Hello. I am trying to create my own pipeline step plugin. What i want to
achieve is:
node {
mystep (var: ...) {
...
sh "gradle clean build"
...
}
}
The key point here: i need to track the status of the inner steps (gradle
build in this case) and execute some code based on the result (i.e. track
if gradle build failed) . Currently i extended SimpleBuildWrapper and set
Disposer:
context.setDisposer(new Disposer() {
@Override
public void tearDown(Run<?, ?> build, FilePath workspace, Launcher
launcher, TaskListener listener)
throws IOException, InterruptedException {
...
}
});
But the issue here: i have no idea how to track inner steps result here.
When disposer code executed build status is still 'RUNNING', even though
gradle build finished with exception.
Is there any way to track inner step's result at the end of my wrapper
step?
--
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/71e0e646-6d36-4300-8e79-e8cbfc758325%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.