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

Cannot save job configuration for maven projects with Jenkins 2.289

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • CenOS 8
      JDK: Oracle 1.8
      Jenkins: 2.289
      Maven Integration plugin: 3.10
      Maven Release Plug-In: 0.16.2
      Scriptler Plugin: 3.1

      Using http protocol

      Save button and Apply button do nothing on the job configure page (for maven projects).  This works for Freestyle projects.

      Steps to reproduce:

      1. Create new Maven Project
      2. Click Save

      Tested on Chrome, Firefox

      Browser console log attached (nothing new appears after clicking Save)

          [JENKINS-65505] Cannot save job configuration for maven projects with Jenkins 2.289

          Alexander Komarov added a comment - - edited

          Additionally:

          Manually editing config.xml for that job and "Reloading Jenkins Configuration" had no effect, I had to restart Jenkins for the job configuration changes to take effect.

          I will try this approach next time I need to edit: https://stackoverflow.com/a/54146660/1735931

          Alexander Komarov added a comment - - edited Additionally: Manually editing config.xml for that job and "Reloading Jenkins Configuration" had no effect, I had to restart Jenkins for the job configuration changes to take effect. I will try this approach next time I need to edit:  https://stackoverflow.com/a/54146660/1735931

          Alexander Komarov added a comment - - edited

          Just noticed that I also cannot save changes to a Scriptler Script

          (same browser console errors)

          Alexander Komarov added a comment - - edited Just noticed that I also cannot save changes to a Scriptler Script (same browser console errors)

          Alexander Komarov added a comment - - edited

          Note that the browser errors suggest that this has to do with Cross-Origin issues, possibly because I'm not using HTTPS.

          The Cross-Origin-Opener-Policy header has been ignored, because the origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol

          I've attempted to use the cors-filter plugin, it made no difference.

          Alexander Komarov added a comment - - edited Note that the browser errors suggest that this has to do with Cross-Origin issues, possibly because I'm not using HTTPS. The Cross-Origin-Opener-Policy header has been ignored, because the origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol I've attempted to use the cors-filter plugin , it made no difference.

          Alexander Komarov added a comment - - edited

          Update: this is not a Cross-Origin issue.  I got around the CORS warning (using Chrome flag chrome://flags/#unsafely-treat-insecure-origin-as-secure) but the issue perists:

           

          TypeError: Cannot read property 'hasClassName' of undefined
           at repeatable.js:159
           at Array.forEach (<anonymous>)
           at behavior.js:116
           at Array.forEach (<anonymous>)
           at behavior.js:111
           at Array.forEach (<anonymous>)
           at Object.applySubtree (behavior.js:93)
           at Object.apply (behavior.js:76)
           at behavior.js:71
           at window.onload (behavior.js:133)
          (anonymous) @ behavior.js:119
          (anonymous) @ behavior.js:111
          applySubtree @ behavior.js:93
          apply @ behavior.js:76
          (anonymous) @ behavior.js:71
          window.onload @ behavior.js:133
          window.onload @ behavior.js:133
          load (async)
          addLoadEvent @ behavior.js:132
          createSearchBox @ hudson-behavior.js:2547
          (anonymous) @ editScript?id=LatestVersionEhcacheX.groovy:11
          behavior.js:119 TypeError: Cannot read property 'next' of undefined
           at findEnd (hudson-behavior.js:890)
           at hudson-behavior.js:1226
           at Array.forEach (<anonymous>)
           at behavior.js:116
           at Array.forEach (<anonymous>)
           at behavior.js:111
           at Array.forEach (<anonymous>)
           at Object.applySubtree (behavior.js:93)
           at Object.apply (behavior.js:76)
           at behavior.js:71

          Alexander Komarov added a comment - - edited Update: this is not a Cross-Origin issue.  I got around the CORS warning (using Chrome flag chrome://flags/#unsafely-treat-insecure-origin-as-secure) but the issue perists:   TypeError: Cannot read property 'hasClassName' of undefined at repeatable.js:159 at Array.forEach (<anonymous>) at behavior.js:116 at Array.forEach (<anonymous>) at behavior.js:111 at Array.forEach (<anonymous>) at Object .applySubtree (behavior.js:93) at Object .apply (behavior.js:76) at behavior.js:71 at window.onload (behavior.js:133) (anonymous) @ behavior.js:119 (anonymous) @ behavior.js:111 applySubtree @ behavior.js:93 apply @ behavior.js:76 (anonymous) @ behavior.js:71 window.onload @ behavior.js:133 window.onload @ behavior.js:133 load (async) addLoadEvent @ behavior.js:132 createSearchBox @ hudson-behavior.js:2547 (anonymous) @ editScript?id=LatestVersionEhcacheX.groovy:11 behavior.js:119 TypeError: Cannot read property 'next' of undefined at findEnd (hudson-behavior.js:890) at hudson-behavior.js:1226 at Array.forEach (<anonymous>) at behavior.js:116 at Array.forEach (<anonymous>) at behavior.js:111 at Array.forEach (<anonymous>) at Object .applySubtree (behavior.js:93) at Object .apply (behavior.js:76) at behavior.js:71

          After some googling, I think that his is caused by a change in 2.264:

          JENKINS-64072

          In my case, at least these plugins:

          JENKINS-65030

          JENKINS-62799

          Alexander Komarov added a comment - After some googling, I think that his is caused by a change in 2.264: JENKINS-64072 In my case, at least these plugins: JENKINS-65030 JENKINS-62799

          Alexander Komarov added a comment - - edited

          Removing the following deprecated plugins fixed the Maven Job save issue:

          • PMD
          • Static Analysis Collector
          • Static Analysis Utilities
          • Findbugs
          • Pipeline Declarative Agent API

          (I had previously removed shim, jqueryui, github-organization-folder, multiscm).

          Note: scriptler still doesn't save.

          Alexander Komarov added a comment - - edited Removing the following deprecated plugins fixed the Maven Job save issue: PMD Static Analysis Collector Static Analysis Utilities Findbugs Pipeline Declarative Agent API (I had previously removed shim, jqueryui, github-organization-folder, multiscm). Note : scriptler still doesn't save.

            Unassigned Unassigned
            akom Alexander Komarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: