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

Replay link does not show up if Jenkinsfile had a syntax error

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      • Create a Pipeline with a Jenkinsfile
      • Introduce a Groovy syntax error, like omitting a trailing parenthesis on a method call
      • Execute

      What ends up happening is that an exception is shown, e.g.:

      Checking out Revision f29c250737c3db53f709977224c4547a43ed4886 (refs/remotes/origin/master)
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 7: expecting ')', found ']' @ line 7, column 17.
                         ])
      

      But the sidebar includes no Replay link to attempt to fix the change, instead you need to commit a change to make the Jenkinsfile correct Groovy syntax.

      Expected

      • Replay is shown no matter how fscked my Jenkinsfile is so I can correct it

      This issue also occurs if you use Replay and introduce a Groovy syntax error as well. Also, I believe this is related to JENKINS-34555

      Attachments

        Issue Links

          Activity

            rtyler R. Tyler Croy created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-34555 [ JENKINS-34555 ]
            roidelapluie Julien Pivotto made changes -
            Attachment PP.png [ 35211 ]
            raj_prince Prince Raj Kumar made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            svanoort Sam Van Oort made changes -
            Labels community-bee community-bee maybe-fixed-by-durability-megafix
            vivek Vivek Pandey made changes -
            Labels community-bee maybe-fixed-by-durability-megafix community-bee maybe-fixed-by-durability-megafix triaged-2018-11

            People

              jglick Jesse Glick
              rtyler R. Tyler Croy
              Votes:
              16 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: