I'm trying to start and stop virtual machines that run on my vSphere server by adding steps to my pipeline in BlueOcean. To start the VM I tried to add a step called "Invoke an vSphere action, exposing the VM IP under some actions" which has to input fields like shown in the image below:
But when I manually enter the line "[$class: 'PowerOn', timeoutInSeconds: 180, vm: 'Node01']" I get the following error:
Expecting "class org.jenkinsci.plugins.vsphere.VSphereBuildStep" for parameter "buildStep" but got "[$class: 'PowerOn', timeoutInSeconds: 180, vm: 'Node01']" of type class java.lang.String instead
However when I edit my jenkinsfile with a text editor, it is working just fine. after that blue ocean lets me edit parameters in the buildstep.