Такая похожая проблема, Java и TestNG, лог:
Started by user anonymous
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/Multi-configuration-selenium-tests-for-xxx/workspace
> /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> /usr/bin/git config remote.origin.url git@selenium.github.com:xxx/selenium-tests.git # timeout=10
Fetching upstream changes from git@selenium.github.com:xxx/selenium-tests.git
> /usr/bin/git --version # timeout=10
> /usr/bin/git fetch --tags --progress git@selenium.github.com:xxx/selenium-tests.git +refs/heads/*:refs/remotes/origin/*
> /usr/bin/git rev-parse refs/remotes/origin/dev^{commit} # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/origin/dev^{commit} # timeout=10
Checking out Revision 1dbcd6072b7082584108d9779fd121f84672fc92 (refs/remotes/origin/dev)
Commit message: "Automation of regression tests for sub-accounts"
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 1dbcd6072b7082584108d9779fd121f84672fc92
> /usr/bin/git rev-list 1dbcd6072b7082584108d9779fd121f84672fc92 # timeout=10
No emails were triggered.
Triggering Multi-configuration-selenium-tests-for-xxx » win10_chrome55,staging,com.xxx.cross_site_iframes.script_inside.**.*
Multi-configuration-selenium-tests-for-xxx » win10_chrome55,staging,com.xxx.cross_site_iframes.script_inside.**.* completed with result FAILURE
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
An attempt to send an e-mail to empty list of recipients, ignored.
Unable to connect to Elasticsearch service. Check Elasticsearch is running in the correct namespace
Finished: FAILURE
При запуске локально, без дженкинса, проблемы нет. Вот лог локального запуска того же самого:
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -Dmaven.multiModuleProjectDirectory=/home/zzzz/repos/selenium-tests/yyy-tests -Dmaven.home=/home/zzzz/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.3968.1/plugins/maven/lib/maven3 -Dclassworlds.conf=/home/zzzz/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.3968.1/plugins/maven/lib/maven3/bin/m2.conf -javaagent:/home/zzzz/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.3968.1/lib/idea_rt.jar=40969:/home/zzzz/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.3968.1/bin -Dfile.encoding=UTF-8 -classpath /home/zzzz/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.3968.1/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2017.2.3 clean test -Plive -Denvironment=win10_chrome55 -Dtest=com.xxx.cross_site_iframes.script_inside.**.*
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building yyyTests 4.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ yyyTests ---
[INFO] Deleting /home/zzzz/repos/selenium-tests/yyy-tests/target
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ yyyTests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ yyyTests ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 9 source files to /home/zzzz/repos/selenium-tests/yyy-tests/target/classes
[INFO] /home/zzzz/repos/selenium-tests/yyy-tests/src/main/java/webdriver/WebDriverFactory.java: /home/zzzz/repos/selenium-tests/yyy-tests/src/main/java/webdriver/WebDriverFactory.java uses unchecked or unsafe operations.
[INFO] /home/zzzz/repos/selenium-tests/yyy-tests/src/main/java/webdriver/WebDriverFactory.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ yyyTests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ yyyTests ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 14 source files to /home/zzzz/repos/selenium-tests/yyy-tests/target/test-classes
[INFO] /home/zzzz/repos/selenium-tests/yyy-tests/src/test/java/com/xxx/TestNgTestBase.java: Some input files use unchecked or unsafe operations.
[INFO] /home/zzzz/repos/selenium-tests/yyy-tests/src/test/java/com/xxx/TestNgTestBase.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- automate-maven-plugin:0.7.2-SNAPSHOT:test-compile (default) @ yyyTests ---
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ yyyTests ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.xxx.cross_site_iframes.script_inside.CrossSiteIframeTest
10:24:48.615 INFO com.xxx.cross_site_iframes.script_inside.CrossSiteIframeTest -> Running tests on environment win10_chrome55
10:24:48.623 INFO webdriver.WebDriverFactory -> Running tests in remote browser
Aug 18, 2017 10:24:54 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
10:25:17.365 INFO com.xxx.cross_site_iframes.script_inside.CrossSiteIframeTest -> Page{
[MESSAGES] ---> []
[READLOG] ---> [AdFormatCode,AdDetectionFlag,IframeFlag,AdMeasuredHeight,AdMeasuredWidth,AdSourceDecoded,AdWPPartFlag,AdAdvertiser,AdCampaign,AdPlacement,AdZone,AdSite,AdCreative,AdParameterA,AncestorOrigins,AncestorOriginCount,AdEventSticky,AdEventDisappear,AdEventAppear,RobotProperties, SS,0,3,600,160,http://testsuite1.xxx.de/render/creative/9,0,,,,,,,,http://testsuite.xxx.de,1,,,,, ,3,3,,,,0,,,,,,,,http://testsuite.xxx.de,1,,,,]
[NUMBER OF FAILED TESTS] ---> 0
[RAW DATA] ---> {du=5254E5D9-E57B-2E62-9D89-DAFD3B87860D, ju=0, ia=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36, ds=0:0:160:600:600/0:0:0:0:0:14:0:0:0/3:0:160:600:600:1/3:0:0:0:0:1:166465:0:0/55:0:0:0:0:24:0:0:0:63/0:0:0:0:0:23:0:0:0:63/5:0:0:0:0:28:0:1024:768/, kb=0, kn=1, ih=0, iv=3020, vx=0, jh=1503044737768wsnh7ijdtn, jt=1, dk=id=87B2DDAF-B8C2-9872-1F7A-AD048B136C77; mxad_id=5254E5D9-E57B-2E62-9D89-DAFD3B87860D, ya=1, ir=http://testsuite.xxx.de/render/page/258, ie=0, jz=0, kp=, ib=AWK Chrome 55.0.2883.75, ii=43317, jm=0, da=1503044711439, jr=http://testsuite1.xxx.de/render/iframe/665, d2=333332, pd=null, vi=43317, dr=1503044711439, ip=1503044711439, yy=1, yf=0:0:300:250:0:3:::030002501:MR::::MR%5f300x250::/, jp=333332, if=a9bdd8d82da93feee8c7f6bb45515d6e, id=3023, ki=0, dc=0, vf=1, yc=1, ik=333332, eu=3, es=0, yt=[], im=0, dv=2017-08-08-09:59-333332-master-, iq=3020, df=1, ic=0, io=WIN Windows NT 10.0, di=1503044708174333332, iu=87B2DDAF-B8C2-9872-1F7A-AD048B136C77, dp=5, et=0, jv=0, ig=0, ys=0:0:1024:600:600/, yi=[{ar=0, ad=0, an=, ak=, ac=0, fx=0, ax=160, ai=110328, at=SS, ah=0, am=, aj=, aa=0, ap=3023, ao=110328, ab=2, af=1, ay=600, fy=0, ag=, aq=0, au=, av=3020, al=0}, {an=null, ac=, ak=null, ad=3, ar=, at=, ah=, am=, fx=0, ai=166465, ax=1, ab=, ao=166465, ap=, ay=1, af=, aa=null, aj=MR_300x250, aq=, al=, av=, au=, ag=, fy=0}], vp=1, vt=0, jx=92, yr=1, dy=0, ja=1503044708174333332, pa=http://testsuite1.xxx.de/render/iframe/665, dj=10, dl=0:0:0:0:0:4:::166465:::::MR%5f300x250/0:0:160:600:0:0::http%3a%2f%2ftestsuite1%2exxx%2ede%2frender%2fcreative%2f9:110328:SS::::::::IMG/, dh=1, jw=128, jn=216, jo=600, db=186, jl=0, dt=1 pjid=333332&size=MR_300x250&buster=zbgiows01y|1 pjid=333332&size=MR_300x250&buster=zbgiows01y, it=1503044708181, ij=0, de=2, vq=requestfullscreen fullscreenenabled engine_chrome_44 window_webkitstorageinfo window_webkitindexeddb window_webkitrequestanimationframe window_webkitcancelanimationframe window_webkitcancelrequestanimationframe window_webkitrequestfilesystem window_webkitresolvelocalfilesystemurl css_webkit, dm=3, ko=http://testsuite.xxx.de}
}
browserstack:session:4988b13cb895653acd71d3f93855423a466a82b6:test:caf67e062c65299685fed1982d6d0b3bb368adf7{0}
10:25:34.560 INFO com.xxx.cross_site_iframes.script_inside.CrossSiteIframeTest -> Page{
[MESSAGES] ---> []
[READLOG] ---> [AdFormatCode,AdDetectionFlag,IframeFlag,AdMeasuredHeight,AdMeasuredWidth,AdSourceDecoded,AdWPPartFlag,AdAdvertiser,AdCampaign,AdPlacement,AdZone,AdSite,AdCreative,AdParameterA,AncestorOrigins,AncestorOriginCount,AdEventSticky,AdEventDisappear,AdEventAppear,RobotProperties, SS,1,3,600,160,http://testsuite1.xxx.de/render/creative/9,0,,,,,,,,http://testsuite.xxx.de,1,,,,]
[NUMBER OF FAILED TESTS] ---> 0
[RAW DATA] ---> {iv=3023, ih=0, kn=1, kb=0, ds=0:0:160:600:600/0:0:0:0:0:14:0:0:0/2:0:160:600:600:1/3:0:0:0:0:1:238569:0:0/14:0:0:0:0:43:110328:1%7c1%7c1:238569/1:0:0:0:0:19:110328:5:238569/32:0:0:0:0:24:0:0:0:54/0:0:0:0:0:23:0:0:0:54/1:0:0:0:0:28:0:1024:768/, ia=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36, ju=0, du=5254E5D9-E57B-2E62-9D89-DAFD3B87860D, ib=AWK Chrome 55.0.2883.75, jz=0, ie=0, kp=, ir=http://testsuite.xxx.de/render/page/258, ya=1, dk=id=87B2DDAF-B8C2-9872-1F7A-AD048B136C77; mxad_id=5254E5D9-E57B-2E62-9D89-DAFD3B87860D, jt=1, jh=1503044753566jf8ilftdxz, vx=0, ip=1503044727112, dr=1503044727112, d2=333332:pretime, pd=null, vi=43317, da=1503044727112, jm=0, jr=http://testsuite1.xxx.de/render/iframe/665, ii=43319, im=0, yt=[], es=0, eu=3, dc=1, ik=333332, vf=1, yc=1, ki=0, id=3025, if=a9bdd8d82da93feee8c7f6bb45515d6e, jp=333332, yy=1, yf=0:0:160:600:0:3:::016006001:SS::::SS%5f160x600::/, ig=0, ys=0:0:1024:600:600/, jv=0, et=0, dp=5, di=1503044723943333332, iu=87B2DDAF-B8C2-9872-1F7A-AD048B136C77, io=WIN Windows NT 10.0, ic=0, df=1, iq=3023, dv=2017-08-08-09:59-333332-master-, ja=1503044723943333332, yr=1, dy=0, jx=74, vt=0, vp=1, yi=[{ak=null, ac=0, an=null, ad=1, ar=0, am=, at=SS, ah=0, fx=0, ax=160, ai=110328, af=1, ay=600, ap=3025, ao=110328, ab=2, aa=0, aj=SS_160x600, au=, al=0, av=3023, aq=0, fy=0, ag=}], jn=93, jw=122, dl=0:0:0:0:0:4:::238569:::::SS%5f160x600/0:0:160:600:0:5::http%3a%2f%2ftestsuite1%2exxx%2ede%2frender%2fcreative%2f9:110328:SS::::::::IMG/, dh=1, dj=10, pa=http://testsuite1.xxx.de/render/iframe/665, ko=http://testsuite.xxx.de, dm=3, vq=requestfullscreen fullscreenenabled engine_chrome_44 window_webkitstorageinfo window_webkitindexeddb window_webkitrequestanimationframe window_webkitcancelanimationframe window_webkitcancelrequestanimationframe window_webkitrequestfilesystem window_webkitresolvelocalfilesystemurl css_webkit, de=2, ij=0, it=1503044723949, dt=1 pjid=333332&size=SS_160x600&buster=p73h3eu6gc|1 pjid=333332&size=SS_160x600&buster=p73h3eu6gc, jl=0, db=186, jo=600}
}
browserstack:session:4988b13cb895653acd71d3f93855423a466a82b6:test:7490993370cc4846097d4c1f28ea899083a755df{0}
10:25:50.537 INFO com.xxx.cross_site_iframes.script_inside.CrossSiteIframeTest -> Page{
[MESSAGES] ---> []
[READLOG] ---> [AdFormatCode,AdDetectionFlag,IframeFlag,AdMeasuredHeight,AdMeasuredWidth,AdSourceDecoded,AdWPPartFlag,AdAdvertiser,AdCampaign,AdPlacement,AdZone,AdSite,AdCreative,AdParameterA,AncestorOrigins,AncestorOriginCount,AdEventSticky,AdEventDisappear,AdEventAppear,RobotProperties, SB,1,3,90,728,http://testsuite2.xxx.de/render/creative/11,0,,,,,,,,http://testsuite.xxx.de http://testsuite1.xxx.de,2,,,,]
[NUMBER OF FAILED TESTS] ---> 0
[RAW DATA] ---> {it=1503044741143, dt=1 pjid=333332&size=SB_728x90&buster=rttzwx2hzz|1 pjid=333332&size=SB_728x90&buster=rttzwx2hzz, jl=0, jo=90, db=186, dm=3, vq=requestfullscreen fullscreenenabled engine_chrome_44 window_webkitstorageinfo window_webkitindexeddb window_webkitrequestanimationframe window_webkitcancelanimationframe window_webkitcancelrequestanimationframe window_webkitrequestfilesystem window_webkitresolvelocalfilesystemurl css_webkit, ko=http://testsuite.xxx.de http://testsuite1.xxx.de, ij=0, de=2, dj=10, pa=http://testsuite2.xxx.de/render/iframe/416, jw=144, jn=96, dh=1, dl=0:0:0:0:0:4:::259405:::::SB%5f728x90/0:0:728:90:0:5::http%3a%2f%2ftestsuite2%2exxx%2ede%2frender%2fcreative%2f11:67404:SB::::::::IMG/, vt=0, vp=1, yi=[{ai=67404, fx=0, ax=728, am=, ah=0, at=SB, ar=0, ad=1, ak=null, ac=0, an=null, fy=0, ag=, au=, al=0, av=3022, aq=0, aa=0, aj=SB_728x90, af=1, ay=90, ao=67404, ap=3024, ab=2}], ja=1503044741137333332, yr=1, dy=0, jx=57, io=WIN Windows NT 10.0, ic=0, dv=2017-08-08-09:59-333332-master-, df=1, iq=3022, ig=0, jv=0, ys=0:0:1024:600:600/, di=1503044741137333332, iu=87B2DDAF-B8C2-9872-1F7A-AD048B136C77, et=0, dp=5, dc=1, ik=333332, yc=1, vf=1, if=a9bdd8d82da93feee8c7f6bb45515d6e, jp=333332, yf=0:0:728:90:0:3:::072800901:SB::::SB%5f728x90::/, yy=1, ki=0, id=3024, yt=[], es=0, im=0, eu=3, pd=null, d2=333332:pretime, vi=43317, ii=43321, jr=http://testsuite2.xxx.de/render/iframe/416, da=1503044744300, jm=0, ip=1503044744300, dr=1503044744300, dk=id=87B2DDAF-B8C2-9872-1F7A-AD048B136C77; mxad_id=5254E5D9-E57B-2E62-9D89-DAFD3B87860D, jt=1, jh=1503044770731kej049rk7w, vx=0, ib=AWK Chrome 55.0.2883.75, jz=0, ie=0, kp=, ya=1, ir=http://testsuite1.xxx.de/render/iframe/415, ds=0:0:728:90:90/0:0:0:0:0:14:0:0:0/2:0:728:90:90:1/2:0:0:0:0:1:259405:0:0/13:0:0:0:0:43:67404:1%7c1%7c1:259405/0:0:0:0:0:19:67404:5:259405/33:0:0:0:0:24:0:0:0:52/0:0:0:0:0:23:0:0:0:52/1:0:0:0:0:28:0:1024:768/, kb=0, du=5254E5D9-E57B-2E62-9D89-DAFD3B87860D, ia=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36, ju=0, kn=2, ih=0, iv=3022}
}
browserstack:session:4988b13cb895653acd71d3f93855423a466a82b6:test:d7fedc51b1a3306d2800fa26f7a2ba570e761779{0}
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 83.605 s - in com.xxx.cross_site_iframes.script_inside.CrossSiteIframeTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:28 min
[INFO] Finished at: 2017-08-18T10:26:12+02:00
[INFO] Final Memory: 34M/474M
[INFO] ------------------------------------------------------------------------
Process finished with exit code 0
То есть в Jenkins билд упал, а при локальном запуске - нет. Что делать, как лечить?