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

FolderTest#copyJob is failing for 2.32 and 2.46

    Details

    • Similar Issues:

      Description

      FolderTest#copyJob is failing with a NPE, due to the jobs not being copied, in newer Jenkins versions. The test does not always fail, but it does so quite frequently.

      copyJob(com.cloudbees.hudson.plugins.folder.FolderTest) Time elapsed: 5.73 sec <<< ERROR! java.lang.NullPointerException at com.cloudbees.hudson.plugins.folder.FolderTest.copyJob(FolderTest.java:140)
      

      It seems like a timing/focus issue, but I have tested different approaches (putting focus into the input field, clicking on it, adding a generous wait time) and neither of them is working. Also some weird log traces are being displayed, so maybe this should be investigated more in depth (see attached screenshot).

      PS: I am using this profile to execute the test:

      <profile>
          <id>jenkins-2.32</id>
          <properties>
              <jenkins.version>2.32.3</jenkins.version>
              <hpi-plugin.version>1.120</hpi-plugin.version>
              <stapler-plugin.version>1.17</stapler-plugin.version>
              <java.level>7</java.level>
          </properties>
      </profile>
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Evaristo Gutiérrez
            Path:
            pom.xml
            src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java
            src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/c50a97de75b658f0b6199af16ccb8f3d7bdb4e6f
            Log:
            JENKINS-41370 Fix test which was failing for 2.32.1 version. Bump parent POM and jenkins test harness versions.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Evaristo Gutiérrez Path: pom.xml src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/c50a97de75b658f0b6199af16ccb8f3d7bdb4e6f Log: JENKINS-41370 Fix test which was failing for 2.32.1 version. Bump parent POM and jenkins test harness versions.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java
            src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/304c051e6da33715d029f13a6570b439a2045082
            Log:
            Merge pull request #84 from varyvol/JENKINS-41370

            JENKINS-41370 Fix PCT for 2.32.1

            Compare: https://github.com/jenkinsci/cloudbees-folder-plugin/compare/4e64cfcf7541...304c051e6da3

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/com/cloudbees/hudson/plugins/folder/properties/FolderCredentialsProvider.java src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/304c051e6da33715d029f13a6570b439a2045082 Log: Merge pull request #84 from varyvol/ JENKINS-41370 JENKINS-41370 Fix PCT for 2.32.1 Compare: https://github.com/jenkinsci/cloudbees-folder-plugin/compare/4e64cfcf7541...304c051e6da3
            Hide
            rarabaolaza Raul Arabaolaza added a comment -

            Reopening as this is still failling with 2.46.1 with the same error

            Show
            rarabaolaza Raul Arabaolaza added a comment - Reopening as this is still failling with 2.46.1 with the same error
            Hide
            egutierrez Evaristo Gutierrez added a comment -

            Stephen Connolly Jesse Glick Oleg Nenashev maybe you could have a look at this? Specially to discard this is not an issue in the plugin or Jenkins core.

            Show
            egutierrez Evaristo Gutierrez added a comment - Stephen Connolly Jesse Glick Oleg Nenashev maybe you could have a look at this? Specially to discard this is not an issue in the plugin or Jenkins core.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I have no capacity to work on it in short-term. Jesse Glick could be the best starting point since he is a plgin maintainer

            Show
            oleg_nenashev Oleg Nenashev added a comment - I have no capacity to work on it in short-term. Jesse Glick could be the best starting point since he is a plgin maintainer
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Raul Arabaolaza
            Path:
            src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java
            http://jenkins-ci.org/commit/cloudbees-folder-plugin/c17a394bf4afeea0bf05bc033c305d93db6c5ead
            Log:
            JENKINS-45501 Fixes for JENKINS-9774 and JENKINS-41370

            • Now `hudson.security.ProjectMatrixAuthorizationStrategy` can be deserialized
            • Bypassing the GUI on `copyJob` and issuing the proper Http request directly
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Raul Arabaolaza Path: src/test/java/com/cloudbees/hudson/plugins/folder/FolderTest.java http://jenkins-ci.org/commit/cloudbees-folder-plugin/c17a394bf4afeea0bf05bc033c305d93db6c5ead Log: JENKINS-45501 Fixes for JENKINS-9774 and JENKINS-41370 Now `hudson.security.ProjectMatrixAuthorizationStrategy` can be deserialized Bypassing the GUI on `copyJob` and issuing the proper Http request directly
            Hide
            rarabaolaza Raul Arabaolaza added a comment -

            This is solved in JENKINS-45501

            Show
            rarabaolaza Raul Arabaolaza added a comment - This is solved in JENKINS-45501

              People

              • Assignee:
                rarabaolaza Raul Arabaolaza
                Reporter:
                egutierrez Evaristo Gutierrez
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: