Jenkins having trouble to match JAVA_HOME
authorrfscholte <rfscholte@apache.org>
Wed, 1 Aug 2018 18:10:24 +0000 (20:10 +0200)
committerrfscholte <rfscholte@apache.org>
Wed, 1 Aug 2018 18:10:24 +0000 (20:10 +0200)
src/it/package/verify.groovy

index 95ec277..3d4cbf3 100644 (file)
  */
  
 def buildLog = new File( basedir, 'build.log' )
-def env = System.getenv()
 
 if ( System.getProperty('java.verion', '8') == '8' )
 {
   // classes -> c:\Program Files\Java\jdk1.8.0_152\jre\lib\rt.jar
   //   org.apache.maven.plugins.jdeps.its (classes)
   //      -> java.io  
-  assert 2 == buildLog.readLines().dropWhile{ !it.startsWith("classes -> ${env.JAVA_HOME}") }.drop(1).takeWhile{ !it.startsWith( '[INFO]' ) }.size()
+  assert 2 == buildLog.readLines().dropWhile{ !it.startsWith("classes -> ") }.drop(1).takeWhile{ !it.startsWith( '[INFO]' ) }.size()
 }
 else
 {