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

Declarative should override the syntax check for CpsFlowDefinition

    XMLWordPrintable

Details

    Description

      CpsFlowDefinition currently just passes its content through a Groovy compiler. This is not very useful if you are editing Declarative. You would want to know if your agent block is right, etc.

      If it can detect that the script is Declarative (I suppose just look for pipeline as a top-level element, or what?), it should invoke the Declarative instead.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: