Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-318

Fix for Jenkins builds and java.io.tmpdir issue for testing via Maven

    XMLWordPrintableJSON

Details

    Description

      Our Jenkins jobs are failing every other day, basically whenever we run on a solaris box, and they are failing specifically in the following tests (e.g., see: https://builds.apache.org/job/oodt-trunk/5/)

      https://builds.apache.org/job/oodt-trunk/5/org.apache.oodt$cas-metadata/testReport/
      https://builds.apache.org/job/oodt-trunk/5/org.apache.oodt$oodt-commons/
      https://builds.apache.org/job/oodt-trunk/5/org.apache.oodt$cas-protocol-sftp/console

      Basically as pointed out by Olivier Lamy on builds@:

      http://s.apache.org/XvJ

      We can fix this with a custom Maven surefire-test declaration for the java.io.tmpdir property:

       <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                  ....
                  <systemPropertyVariables>
                    <java.io.tmpdir>${project.build.outputDirectory}</java.io.tmpdir>
                  </systemPropertyVariables>
                  ....
                </configuration>
              </plugin>
      

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            chrismattmann Chris A. Mattmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: