Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44499

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

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
      }

            abayer Andrew Bayer
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: