Produce a validation error when processing a json model from the editor which has invalid groovy syntax in a script block

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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
      }

            Assignee:
            Andrew Bayer
            Reporter:
            Michael Neale
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: