Open nikola197 opened 4 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @jtyr @nerzhul click here for bot help
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
The issue is real, but can be workarounded by specifying the version:
community.general.jenkins_plugin:
name: "ansible"
state: latest
update_json_url_segment:
- "update-center.json/version={{ jenkins_version }}"
The version can be obtained for example from the Docker label org.opencontainers.image.version
SUMMARY
When
state: latest
is set in jenkins_plugin module, it installs the latest plugin version even if it is not compatible with the current Jenkins version.ISSUE TYPE
COMPONENT NAME
Module: jenkins_plugin
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Host: Ubuntu 20.04 Remote: MacOS Catalina 10.15
STEPS TO REPRODUCE
EXPECTED RESULTS
It should install the latest compatible plugin version with the current Jenkins version.
ACTUAL RESULTS
It install the most latest version of the plugin regardless of its compatibility.