-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
If you open the editor, add a script block and put something like "this is a thing" in there - it is invalid groovy. The Jenkinsfile wont parse.
however the editor lets you save as it isnt' getting this validation message early enough. If you then try to load it up, obviously it won't load as it isn't well formed.
The contents of the jenkinsfile has something like:
script {
this is a thing
}
- duplicates
-
JENKINS-46854 Improve validation around script blocks in editor or remove script blocks
- Closed
- relates to
-
JENKINS-44039 editor failing on round trip with script block sometimes: hangs when saving due to quoted groovy script
- Closed