Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins plugins fail with error 401 #389

Open
Hraesvelg opened this issue Aug 27, 2024 · 3 comments
Open

Jenkins plugins fail with error 401 #389

Hraesvelg opened this issue Aug 27, 2024 · 3 comments

Comments

@Hraesvelg
Copy link

hi,

i try to define some plugin to install with this ansible role :

jenkins_plugins:
  - "folder-properties"
  - "echarts-api"
  - ...

but result is always the same, I tested some fix found in other topic without success

TASK [geerlingguy.jenkins : Install Jenkins plugins using password.] *************************************************************************************************************************************************************
FAILED - RETRYING: [*.*.*.*]: Install Jenkins plugins using password. (3 retries left).
FAILED - RETRYING: [*.*.*.*]: Install Jenkins plugins using password. (2 retries left).
FAILED - RETRYING: [*.*.*.*]: Install Jenkins plugins using password. (1 retries left).
failed: [*.*.*.*] (item=folder-properties) => {"ansible_loop_var": "item", "attempts": 3, "changed": false, "details": "**HTTP Error 401: Unauthorized**", "item": "folder-properties", "msg": "**Cannot get CSRF**"}
FAILED - RETRYING: [*.*.*.*]: Install Jenkins plugins using password. (3 retries left).

@Hraesvelg
Copy link
Author

solved ! don't use complex password.. or think to escape special if possible...

@CedricLevasseur
Copy link

Hello @Hraesvelg
I have the same issue.
I'm not sure to understand the resolution. What is the password used for ?
I don't think it's a login/password for downloading the plugins ?
It's not the password of my user when connecting in Jenkins ?
Oh may be it's the admin default password ?

Thanks for your answer.
Cedric

@Hraesvelg
Copy link
Author

Hello @CedricLevasseur ,

in my case it was the password behind jenkins_admin_password

and i didn't find rules to define password but like postgres, not optimal for security reason but classical letter and digit do the job...

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

No branches or pull requests

2 participants