How to create and copy jenkins jobs using shell commands.Also how to run only a few test cases out of all mentioned in the job or a suite. What are the settings i need to change to achieve this.
Asked
Active
Viewed 250 times
-1
-
Welcome to Stackoverflow. What have you tried so far? – KeepCalmAndCarryOn Mar 10 '15 at 09:20
-
i have tried the jenkins-cli but i want to use it on linux as well.so i want it through shell script.plus i think this might work for running an emulator-: ps aux | grep -ie emulator | awk '{print $2}' | xargs kill -9..Creating and copying is something i am not able to achieve – Aniket Mar 10 '15 at 10:19
-
could you please tell us how u r triggering your test cases.. there are lot of ways to trigger.. using maven-testNG is an example.. – DevD Mar 12 '15 at 09:21
-
i am providing a build.xml of the test project to run the tests.I dont knw how to use maven-testng in jenkins – Aniket Mar 13 '15 at 09:27
1 Answers
0
Copy Jenkins job ? can do so while creating a job by selecting 'copy from option'
logic of the script to run the tests has to be updated to pick selected tests to run from the suite. Jenkins has no options to select the test cases from a suite internally.

Giri
- 411
- 2
- 18
-
I can do so using jenkins-cli now.But the now the problem is to run only a few test cases out of the bunch and creating another job for selected ones seems like the only option. – Aniket Mar 12 '15 at 04:32