при генерации отчетов полученные скриншоты не копируются в папку с репортом в джобе #jenkins : .jenkins/jobs/myproject/htmlreports/
по идее должно. Как настроить автоматическое копирование скриншота в папку с отчетом?
Что значит ‘из папки самого проекта’? Атачьте скрины + конфигурацию publisher плагина. Выводите в лог абсолютный путь сохраненного файла и report output dir. Какие пути засечены на уровне maven-surefire-plugin?
System.out.println("Output path: " + result.getTestContext().getOutputDirectory()); вывел: Output path: C:\Selenium\reportng4\TestReport\Test suite
Results :
Failed tests:
TestRunner.testFailedForJenkins:46 NullPointer
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
[ERROR] There are test failures.
Please refer to C:\Selenium\reportng4\TestReport for the individual test results.
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ AutoTests ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\Selenium\reportng4\target\AutoTests-1.0.0.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ AutoTests ---
[INFO] Installing C:\Selenium\reportng4\target\AutoTests-1.0.0.jar to C:\Users\user\.m2\repository\Selenium\AutoTests\1.0.0\AutoTests-1.0.0.jar
[INFO] Installing C:\Selenium\reportng4\pom.xml to C:\Users\user\.m2\repository\Selenium\AutoTests\1.0.0\AutoTests-1.0.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.906 s
[INFO] Finished at: 2016-08-01T14:16:04+03:00
[INFO] Final Memory: 29M/439M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving C:\Selenium\reportng4\pom.xml to Selenium/AutoTests/1.0.0/AutoTests-1.0.0.pom
[JENKINS] Archiving C:\Selenium\reportng4\target\AutoTests-1.0.0.jar to Selenium/AutoTests/1.0.0/AutoTests-1.0.0.jar
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level C:\Users\user\.jenkins\jobs\reportng4\workspace\TestReport\html to C:\Users\user\.jenkins\jobs\reportng4\htmlreports\HTML_Report
ERROR: Specified HTML directory 'C:\Users\user\.jenkins\jobs\reportng4\workspace\TestReport\html' does not exist.
Build step 'Publish HTML reports' changed build result to FAILURE
Finished: FAILURE