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

Invalid flags supplied to RegExp constructor 'JobName'

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Critical Critical
    • None
    • Jenkins 1.528

      After upgrading to Jenkins 1.528, opening the configuration page of any job gives the javascript error:
      Invalid flags supplied to RegExp constructor 'JobName'

      Workaround:
      Disable the publish over ssh plugin

          [JENKINS-19279] Invalid flags supplied to RegExp constructor 'JobName'

          Thomas Suckow created issue -

          +1 same here, disabling resolved the issue of configuration, but now jobs can publish over ssh..

          Jeffrey Damick added a comment - +1 same here, disabling resolved the issue of configuration, but now jobs can publish over ssh..

          Balder VC added a comment -

          Some more info:
          This happens because the checkUrl in the execCommand textarea is not escaped with '
          This textarea is defined in textarea.jelly in the publish-over plugin

          Balder VC added a comment - Some more info: This happens because the checkUrl in the execCommand textarea is not escaped with ' This textarea is defined in textarea.jelly in the publish-over plugin

          Balder VC added a comment -

          I've send a pull request ( https://github.com/jenkinsci/publish-over-plugin/pull/3 ) but I'm unsure if it's the right way to fix the issue. It does make everything usuable again. And the checkUrl is properly escaped when using publish-over-ssh.
          I'd like someone to validate the fix.

          Balder VC added a comment - I've send a pull request ( https://github.com/jenkinsci/publish-over-plugin/pull/3 ) but I'm unsure if it's the right way to fix the issue. It does make everything usuable again. And the checkUrl is properly escaped when using publish-over-ssh. I'd like someone to validate the fix.

          Balder VC added a comment -

          ^^ Pull request does not properly fix issue. The warning that one of sourceFiles or execCommand has to be populated is always shown. The fix is a workaround though. You can edit the job config again and just ignore the warning. And the publish-over-ssh works. ( To apply temporarily fix. Replace the publish-over artifact from the plugins WEB-INF/lib/ folder with the patched one )

          Balder VC added a comment - ^^ Pull request does not properly fix issue. The warning that one of sourceFiles or execCommand has to be populated is always shown. The fix is a workaround though. You can edit the job config again and just ignore the warning. And the publish-over-ssh works. ( To apply temporarily fix. Replace the publish-over artifact from the plugins WEB-INF/lib/ folder with the patched one )

          This issue might be the same that makes, JENKINS-19389 happen.

          Anders Arnholm added a comment - This issue might be the same that makes, JENKINS-19389 happen.
          Anders Arnholm made changes -
          Link New: This issue is related to JENKINS-19389 [ JENKINS-19389 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150727 ] New: JNJira + In-Review [ 177751 ]
          Alex Earl made changes -
          Assignee Original: bap [ bap ] New: Alex Earl [ slide_o_mix ]

          Alex Earl added a comment -

          I have been unable to replicate this issue, can someone provide additional information?

          Alex Earl added a comment - I have been unable to replicate this issue, can someone provide additional information?

            slide_o_mix Alex Earl
            thomassuckow Thomas Suckow
            Votes:
            11 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: