Skip to content

vjuranek/jenkins-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins scripts

Backup

  • bash/simple-git-backup.sh - simple bash script for backing up Jenkins config files ($JENKINS_HOME/.xml) and jobs configurations (jobs/*/config.xml) into git and pushing it into remote repo.

Disk usage

  • bash/job-disk-usage.sh - simple script which prints out disk used by Jenkins jobs in human readble format and sorted based on disk usage of the jobs.

Plugins

  • bash/plugins-used-by-jobs.sh - prints plugings used by Jenkins jobs. As a basis is taken configs of the jobs ($JOB_NAME/congif.xml). This is simple solution, but not very robust, as some plugins can be used only by Jenkins master (e.g. various cloud providers plugins) or plugins may seem as unused, but is used by another plugin which depends on it.

  • python/analyse-plugins.py - attempt for a more robust solution. Besides parsing job confgis and also global Jenkins config files (all $JENKINS_HOME/*.xml files), it also tries to parse plugins metadata and search for plugins dependencies. Give all dependency tree, it tries to list plugins which are not used by any job, Jenkins master or is dependency of another plugin.

System Groovy scripts

Scripts for Jenkins Groovy console ($JENKINS_URL/script) or eventually for system Groovy jobs for various routine Jenkins administration tasks. What script does is usually obvious from script name. If not, description is in given script.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published