-
Bug
-
Resolution: Not A Defect
-
Minor
-
Plugin version 1.2
After updating to the latest version of the Pipeline Model Definition Plugin I get the following error:
WorkflowScript: 43: Unknown conditional error. Valid conditionals are: allOf, anyOf, branch, changelog, changeset, environment, expression, not @ line 43, column 21. environment name: 'CONTINUE', value: 'yes' ^
The whole block looks like this
stage('stage') { when { environment name: 'CONTINUE', value: 'yes' } steps { do something } }
I wrote a whole epic here about my attempts to figure out what was going on, since it made no sense and I can't reproduce it. But I just noticed something truly weird:
Specifically, Unknown conditional error - that means something went wrong, in theory, with parsing environment as a String literal, which...yeah. Never actually seen that, and it should have thrown up another error for that.
Is there any way you can get me the entire Jenkinsfile? Something somewhere is really broken with parsing your Jenkinsfile and I can't reproduce it just from your example.