#Jenkins java client
This java client is used to log on a Jenkins server and execute following actions :
- copying a list of jobs (RegExp) replacing a list of patterns
- removing a list of jobs (RegExp) or all the unused jobs (created but not used in any view)
New actions could be added later.
- Copying jobs replacing patterns Command line :
- java -jar jenkins_client.jar -server http://HOST:PORT -username USERNAME -password PASSWORD -copyJobsReplacingPatterns [regexp to list jobs] [before1/after1,before2/after2,before3/after3,...]
- java -jar jenkins_client.jar -server http://myServer:myPort -username user -password pass -copyJobsReplacingPatterns .*Compilation.* Compilation/Tests,machineA/Bcomputer
- Removing a list of jobs Command line :
- java -jar jenkins_client.jar -server http://HOST:PORT -username USERNAME -password PASSWORD -removeJobs [regexp to list jobs]
- java -jar jenkins_client.jar -server http://HOST:PORT -username USERNAME -password PASSWORD -removeJobs unused
- java -jar jenkins_client.jar -server http://HOST:PORT -username USERNAME -password PASSWORD -removeJobs .*Tests.*
To execute action without any prompt, add -f at the end of the command line.