-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
-
Declarative - 1.2
Jenkinsfile:
pipeline { agent any stages { stage('Test') { steps { wrap([$class: 'org.boxboat.plugins.lxd.HelloWorldWrapper']) { sh ''' ls /tmp cat /tmp/jenkins''' } } } stage('Publish') { steps { wrap([$class: 'org.boxboat.plugins.lxd.HelloWorldWrapper']) { sh ''' ls /tmp cat /tmp/jenkins''' } } } } }
When I hit "Save and Run" in the Blue Ocean editor, it does nothing and gives no indication of an error. When I browse the network requests tab I see a request to `http://localhost:8080/jenkins/pipeline-model-converter/toJenkinsfile` that returned 200, but included a failure message:
{ "status":"ok", "data":{ "result":"failure", "errors":[ { "location":[ "pipeline", "stages", "0", "branches", "0", "steps", "0", "arguments", "0", "value" ], "error":"Expecting \"class jenkins.tasks.SimpleBuildWrapper\" for parameter \"delegate\" but got \"[$class: 'org.boxboat.plugins.lxd.HelloWorldWrapper']\" of type class java.lang.String instead" }, { "location":[ "pipeline", "stages", "1", "branches", "0", "steps", "0", "arguments", "0", "value" ], "error":"Expecting \"class jenkins.tasks.SimpleBuildWrapper\" for parameter \"delegate\" but got \"[$class: 'org.boxboat.plugins.lxd.HelloWorldWrapper']\" of type class java.lang.String instead" } ] } }
michaelneale ping - heres another one.