Skip to content

Add script to sync Jenkins plugin versions from plugins.rb - #898

Open
Crola1702 wants to merge 2 commits into
masterfrom
Crola1702/update-plugin-versions-script
Open

Add script to sync Jenkins plugin versions from plugins.rb#898
Crola1702 wants to merge 2 commits into
masterfrom
Crola1702/update-plugin-versions-script

Conversation

@Crola1702

@Crola1702 Crola1702 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Adds tools/update_plugin_versions.py, which reads a plugins.rb-style
attributes file (as used in
https://github.com/osrf/chef-osrf/blob/latest/cookbooks/ros2ci/attributes/plugins.rb)
and updates matching plugin="name@version" references across the empy
templates under job_templates/, recursively

Usage:

python3 tools/update_plugin_versions.py <path-to-plugins.rb> [templates_dir] [--dry-run]

The plugins.rb versions can be regenerated from the live Jenkins server with
https://github.com/osrf/chef-osrf/blob/latest/scripts/jenkins_plugins.rb:

./scripts/jenkins_plugins.rb <Server> <User> <Password/Token>

This should make future plugin-version syncs (like #897) a single command
instead of manual per-file edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant