Hi team,
My plugin is downloading a powershell script and is executing that. I was 
using Powershell Plugin itself, but problem with this is it fails while 
executing pipeline script.
throwing ClassCastException  WorkflowRun cannot be cast to AbstractBuild
[image: exception.png]
 With some basic search in the group I believe it is not the right to cast 
Run to AbstractBuild
Creating own ProcessBuilder executes the step on current machine instead of 
slave, which is why I want to use CommandInterpreter.

Is there any other suggested way to execute the powershell script to use 
the same?

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/c420a843-b618-416b-81bb-d5b7615f5570%40googlegroups.com.

Reply via email to