ICTO / ansible-jenkins

Ansible playbook: Jenkins
MIT License
282 stars 171 forks source link

plugin authentication issue #61

Closed mpodber1971 closed 7 years ago

mpodber1971 commented 7 years ago

when trying to run the jenkins cli in plugins.yml, i get an error about authentication ERROR: You must authenticate to access this Jenkins. Use --username/--password/--password-file parameters or login command.

i have tried using admin with locally stored admin password to no avail. how did you work around this or fix?

mpodber1971 commented 7 years ago

i figured out a solution. it has to do with the downloaded jenkins-cli.jar appears to be incompatible with the version of jenkins installed on the instance. Therefore, the best thing to do is copy the already installed jenkins-cli.jar to the same directory as what would have been downloaded

in cli.yml,

change this

to