Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mastcard/JenkinsClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

#Jenkins java client

This java client is used to log on a Jenkins server and execute following actions :

  1. copying a list of jobs (RegExp) replacing a list of patterns
  2. removing a list of jobs (RegExp) or all the unused jobs (created but not used in any view)

New actions could be added later.

User guide

  1. Copying jobs replacing patterns
  2. 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,...]
    For instance :
    • java -jar jenkins_client.jar -server http://myServer:myPort -username user -password pass -copyJobsReplacingPatterns .*Compilation.* Compilation/Tests,machineA/Bcomputer

  3. Removing a list of jobs
  4. 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
    For instance :
    • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages