Status: Open (View Workflow)
Environment:Jenkins ver. 2.138.2
Jenkins running as windows service on a windows server 2016 64 bit machine
Pipeline implementation for Blue Ocean 1.9.0
Running latest version of bluecoean as of the opening of this ticket.
When using blueocean-pipeline editor with when conditions in JenkinsFile we get errors about "Empty closure" and "Expected When Condition", below is JenkinsFile.
If I load the above file and then click on edit in blue ocean I get the following errors
- Expected a when condition @ line 10, column 7.
- Expected a when condition @ line 18, column 7.
- Empty when closure, remove the property or add some content. @ line 10, column 7.
- Empty when closure, remove the property or add some content. @ line 18, column 7.
I generated the When statements using the Declarative pipeline generator from with in Jenkins.
I also tested with the examples from the main jenkins site https://jenkins.io/doc/book/pipeline/syntax/ and when I add these to my jenkinsfile , the blueocean editor complains the same as above.
I am unsure if I am doing something incorrectly of of it a true bug so hopefully someone can look at this and provide some insights.
Also using the online documentation