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

FolderTest#copyJob is failing for 2.32 and 2.46

XMLWordPrintable

      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>
      

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

              Created:
              Updated:
              Resolved: