You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error occurs only when the update-center.json is not downloaded because ins this case the the variable is not initialized.
following workaround exists therefore: set updates_expiration to 0 to force download
Summary
When updating plugins in jenkins with module jenkins_plugins we get the following error:
msg": "Cannot load JSON data from the tmp updates file."
"details": "local variable 'tmp_updates_file' referenced before assignment"
The error doesnt happen on old version of ansible. The jenkins-plugin Module code shows that this error code is caused by
#5565
Issue Type
Bug Report
Component Name
jenkins_plugin
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
RHEL 7
Steps to Reproduce
Expected Results
I expect No error message. The Jenkins Plugin should be downloaded and updated
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: