jeudi 10 septembre 2015

How to call testng file using shell command in Jenkins?

I am new to Jenkins. I have installed Jenkins on Linux server & created a new Job, trying to execute the job with Shell Command. I have used following shell command to call testng.xml present in the workspace. My shell command is java -cp ./lib/*:./bin org.testng.TestNG testng.xml. Whenever I am trying to build it's got failure & Jenkins console output is given below...

Building in workspace                                                                      
/home/probe7qa/http://ift.tt/1LlTGr5
[eNotes] $ /bin/sh -xe /tmp/hudson2820423871587994396.sh
+ java -cp ./lib/*:./bin org.testng.TestNG testng.xml
[TestNG] Running:

/home/probe7qa/http://ift.tt/1L45iTL

===============================================
Suite
Total tests run: 12, Failures: 0, Skips: 12
Configuration Failures: 1, Skips: 1
===============================================

Build step 'Execute shell' marked build as failure
Finished: FAILURE

Earlier I run same source file using Eclipse IDE & Jenkins installed in windows machine. Both Succeeded & No problem. But Jenkins installed in linux machine causes the problem.. How to solve this? Is there is any mistake in Shell Command that i have written above? I am facing this issue from last two days but didn't get any solution.. Please help on this..

Aucun commentaire:

Enregistrer un commentaire