Hello,
I am working on OpenStack Cloud plugin to introduce Declarative Pipeline option. The feature is nearly done, all I need is to delete the OpenStack machine which is supposed to be only temporary and removed once the job is finished.
I am not sure which method to call from Workflow step api plugin.
I have my Step Execution here: https://github.com/drichtarik/openstack-cloud-plugin/blob/JENKINS-47742/src/main/java/jenkins/plugins/openstack/pipeline/OpenStackNodeStepExecution.java
It needs to run ((JCloudsComputer) newSlave.toComputer()).deleteSlave(); as it is in public void stop method. But probably somewhere else? Should I extend something else than SynchronousNonBlockingStepExecution?
Your help would be much appreciated!
Regards
Denis Richtárik