I have a small h=java project which uses javaFX, junit5 et gradle, the tests run fine in eplipse, the test run fine using gradle in the local mac, when trying to run the tests in jenkins using the same gradle file tests break when the test using the gui are executed, there are exceptions.
Here is the project
Here are the eclipse project zip
Started by user Ruben Gonzalez-Rubio Building in workspace /var/local/jenkins/.jenkins/workspace/jPGtestFX [WS-CLEANUP] Deleting project workspace… [WS-CLEANUP] Deferred wipeout is used… [WS-CLEANUP] Done Checking out a fresh workspace because there’s no workspace at /var/local/jenkins/.jenkins/workspace/jPGtestFX Cleaning local Directory . Checking out svn+ssh://gonr1001@svn.gel.usherbrooke.ca/grp/svn/devJava/projectJGtestFX/trunk/jPGtestFX at revision ‘2019-01-23T12:14:48.164 -0500’ --quiet Using sole credentials gonr1001/****** (dev) in realm ?gonr1001@svn+ssh://svn.gel.usherbrooke.ca? Using sole credentials gonr1001/****** (dev) in realm ?gonr1001@svn+ssh://svn.gel.usherbrooke.ca? At revision 38 No changes for svn+ssh://gonr1001@svn.gel.usherbrooke.ca/grp/svn/devJava/projectJGtestFX/trunk/jPGtestFX since the previous build [Gradle] - Launching build. [jPGtestFX] $ /var/local/jenkins/.jenkins/tools/hudson.plugins.gradle.GradleInstallation/default_4.10/bin/gradle -Pheadless=true test Starting a Gradle Daemon (subsequent builds will be faster) > Task :compileJava > Task :processResources > Task :classes > Task :compileTestJava > Task :processTestResources NO-SOURCE > Task :testClasses > Task :test sample.MainTest > testEnglishInput() FAILED java.lang.RuntimeException Caused by: java.lang.RuntimeException sample.models.CalculatorTests > addsTwoNumbers() PASSED sample.models.CalculatorTests > add(int, int, int)[1] PASSED sample.models.CalculatorTests > add(int, int, int)[2] PASSED sample.models.CalculatorTests > add(int, int, int)[3] PASSED sample.models.CalculatorTests > add(int, int, int)[4] PASSED tests.ClickApplicationTest > should_click_on_button() FAILED java.lang.RuntimeException Caused by: java.lang.RuntimeException tests.ClickApplicationTest > should_contain_button() FAILED java.lang.RuntimeException Caused by: java.lang.RuntimeException 8 tests completed, 3 failed > Task :test FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:test’. > There were failing tests. See the report at: file:///var/local/jenkins/.jenkins/workspace/jPGtestFX/build/reports/tests/test/index.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 15s 4 actionable tasks: 4 executed Build step ‘Invoke Gradle script’ changed build result to FAILURE Build step ‘Invoke Gradle script’ marked build as failure Finished: FAILURE
Page generated: Jan 23, 2019 12:15:16 PM ESTREST APIJenkins ver. 2.161