0

I have below things:

I have copied project in my Jenkins server which contains:

drwxr-xr-x 2 tomcat tomcat 4096 Jan 12 06:28 bin

drwxr-xr-x 2 tomcat tomcat 4096 Jan 12 06:28 lib

-rwxr-xr-x 1 tomcat tomcat   47 Jan 12 06:28 Run.bat

drwxr-xr-x 3 tomcat tomcat 4096 Jan 12 06:28 src

-rwxr-xr-x 1 tomcat tomcat  288 Jan 12 06:28 testng.xml

drwxr-xr-x 6 tomcat tomcat 4096 Jan 12 06:28 test-output

I want to run this project in Jenkins. Anyone can pls suggest here?

Note: currently I don't have pom.xml in my project as i just want to run a demo.

biruk1230
  • 3,042
  • 4
  • 16
  • 29
Patils
  • 65
  • 3
  • 10

1 Answers1

0

If you want just publish your test results in Jenkins, use TestNG plugin. If you also want to run TestNG unit tests, you can additionally use this script.

biruk1230
  • 3,042
  • 4
  • 16
  • 29
  • tomcat@hostname~/scripts/build/pipeline/Jenkins> java -cp "./lib/*:./bin" org.testng.TestNG testng.xml [TestNG] [ERROR] Cannot find class in classpath: /usr/share/tomcat/scripts/build/pipeline/Jenkins/src/JenkinsPackage/NewTest.java – Patils Jan 22 '19 at 12:16
  • Does it exist in that classpath? – biruk1230 Jan 22 '19 at 12:44
  • Yes @biruk .I have given right path. Still it giving same error – Patils Jan 23 '19 at 12:49