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

Invalid flags supplied to RegExp constructor 'JobName'

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

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

            jdamick Jeffrey Damick added a comment - +1 same here, disabling resolved the issue of configuration, but now jobs can publish over ssh..
            redlab 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

            redlab 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
            redlab 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.

            redlab 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.
            redlab 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 )

            redlab 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 Anders Arnholm added a comment - This issue might be the same that makes, JENKINS-19389 happen.
            slide_o_mix Alex Earl added a comment -

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

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

            For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

            Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/191
            And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-19279%22

            (Note: this is an automated bulk comment)

            gmcdonald Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/191 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-19279%22 (Note: this is an automated bulk comment)

            People

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

              Dates

                Created:
                Updated:
                Resolved: