On Wed, Jul 29, 2020 at 7:27 AM Nikhil Bhoski <[email protected]> wrote:
> first few attempts always showed below exception when i invoked my pipeline 
> step as
> runMATLABCommand "Command"
> java.lang.IllegalStateException: There is no body to invoke
> at 
> org.jenkinsci.plugins.workflow.cps.CpsStepContext.newBodyInvoker(CpsStepContext.java:282)

Did you forget to mark your `StepDescriptor` as block-scoped? Or
forget to actually pass a block?

> This works perfectly fine with BourneShellScript  class invocation however  I 
> am kind of stuck at figuring out the cleanup activities
> after execution is done (like deleteing all temp folders and files i created) 
> Class DurableTask does not seem to have a way to override cleanup() method.

Again, do not go there. You just need a wrapper step. You do not need
to touch or even look at `DurableTaskStep`.

-- 
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/CANfRfr2fMw3TctP4_HtH80%3DCKe-Ab4HM4Zmcf7T6R8hDfjxnkA%40mail.gmail.com.

Reply via email to