Hi all i have been working on tis issue for some time and i cant find 
solution becouse integration tests run each time in new directory called 
MyProject@1,2,3,4...

I have stated that i want them to run in specific directory but that is not 
helping. Here is example of my code.

parallel( FirstSuite: {
    node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 0 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=FirstSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/FirstSuite'
         } 
     }
 }, 
 SecondSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 20 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=SecondSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/SecondSuite'
         }
     }
 },
 ThirdSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 40 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=ThirdSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/ThirdSuite' 
         }
     }
 },
 FourthSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 60 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=FourthSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/FourthSuite' 
         }
     }
 },
 FifthSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 80 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=FifthSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/FifthSuite' 
         }
     }
 },
 SextSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 100 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository -Dit.test=SextSuite 
-Djava.io.tmpdir=java/target -Dlog.dir=java/target/log/SextSuite' 
         }
     }
 },
 SeventhSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 120 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=SeventhSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/SeventhSuite' 
         }
     }
 },
 EighthSuite: {
     node('master') {
         ws('/opt/.jenkins/workspace/MyProject') {
             sh 'sleep 140 && mvn -s settings.xml -f java/pom.xml 
integration-test -P dev  -Dmaven.repo.local=.repository 
-Dit.test=EighthSuite -Djava.io.tmpdir=java/target 
-Dlog.dir=java/target/log/EighthSuite' 
         }
     }
 },)

But i am still getting errors in maven that pom is not readable, and that 
directory is missing becouse this ws command is not helping. My integration 
tests are executed in MyProject@2, @3, @4 and so on...










*[FirstSuite] + mvn -s settings.xml -f java/pom.xml integration-test -P dev 
-Dmaven.repo.local=.repository -Dit.test=FirstSuite 
-Djava.io.tmpdir=java/target -Dlog.dir=java/target/FirstSuite
[FirstSuite] Java HotSpot(TM) Server VM warning: ignoring option 
MaxPermSize=384m; support was removed in 8.0
[FirstSuite] [INFO] Scanning for projects...[FirstSuite] [ERROR] The build 
could not read 1 project -> [Help 1][PmClientTestsuite] [ERROR]   
[FirstSuite] [ERROR]   The project  
(/opt/.jenkins/workspace/MyProject@16/java/pom.xml) has 1 error[FirstSuite] 
[ERROR]     Non-readable POM /opt/.jenkins/workspace/MyProject@16/java/pom.xml: 
/opt/.jenkins/workspace/MyProject@16/java/pom.xml (Datei oder Verzeichnis nicht 
gefunden)[FirstSuite] [ERROR] [FirstSuite] [ERROR] To see the full stack trace 
of the errors, re-run Maven with the -e switch.[FirstSuite] [ERROR] Re-run 
Maven using the -X switch to enable full debug logging.[FirstSuite] [ERROR] 
[FirstSuite] [ERROR] For more information about the errors and possible 
solutions, please read the following articles:[FirstSuite] [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 
<http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException>*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/568a4968-8062-43b7-a8d0-51ecda9ec247%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to