I am planning to update all Jenkins plugins URLs to point to an internal host instead of existing open source urls. I cannot find any function in python-jenkins API to do so.
{'active': True, 'backupVersion': None, 'bundled': False, 'deleted': False, 'dependencies': [{'optional': True, 'shortName': 'sshd', 'version': '3.0.1'}], 'detached': False, 'downgradable': False, 'enabled': True, 'hasUpdate': True, 'longName': 'Popper.js 2 API Plugin', 'minimumJavaVersion': '1.8', 'pinned': False, 'requiredCoreVersion': '2.263.1', 'shortName': 'popper2-api', 'supportsDynamicLoad': 'YES', 'url': 'https://plugins.jenkins.io/popper2-api', 'version': 2.5.4-3}
For example, I would like to update the plugin update URL for the above plugin[which I got from get_plugin_info()
via python-jenkins API] from https://plugins.jenkins.io/popper2-api to https://my_internal_jenkins_plugins.com/popper2-api
So is there any way to do so via python-jenkins API or is there any curl or other method available for doing it?