This repository contains resources and tools for managing Jenkins plugins effectively, including automation scripts and best practices.
- Navigate to
Manage Jenkins > Plugins
- Use the Available/Installed tabs
- Install/update/remove plugins through the interface
Basic plugin installation:
java -jar jenkins-cli.jar -s http://your-jenkins-url install-plugin PLUGIN_NAME [-deploy] [-restart]
Enable plugin:
java -jar jenkins-cli.jar -s http://your-jenkins-url enable-plugin PLUGIN_NAME [-restart]
Disable plugin:
java -jar jenkins-cli.jar -s http://your-jenkins-url disable-plugin PLUGIN_NAME [-restart] [-strategy STRATEGY]
# Copy plugin file to Jenkins
cp plugin.hpi JENKINS_HOME/plugins/
# Rename to .jpi if needed
mv JENKINS_HOME/plugins/plugin.hpi JENKINS_HOME/plugins/plugin.jpi
# Restart Jenkins
systemctl restart jenkins
Check the scripts/
directory for automation tools:
- Plugin installation automation
- Dependency management
- Version control
- Backup and restore
-
Version Control
- Keep plugin versions documented
- Use configuration as code when possible
- Maintain a plugins.txt file
-
Testing
- Test plugin updates in staging
- Maintain backup before updates
- Document compatibility issues
-
Maintenance
- Regular plugin updates
- Remove unused plugins
- Monitor plugin dependencies
-
Plugin Conflicts
- Check version compatibility
- Review dependency tree
- Consult Jenkins logs
-
Failed Updates
- Verify Jenkins version compatibility
- Check network connectivity
- Review update center status
Feel free to contribute by:
- Opening issues for problems or suggestions
- Submitting pull requests with improvements
- Sharing your plugin management scripts
MIT License - See LICENSE file for details