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

slave: INFO: Failure authenticating with BASIC 'Jenkins' 401 #371

Closed
iakovgan opened this issue Sep 8, 2015 · 4 comments
Closed

slave: INFO: Failure authenticating with BASIC 'Jenkins' 401 #371

iakovgan opened this issue Sep 8, 2015 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@iakovgan
Copy link
Contributor

iakovgan commented Sep 8, 2015

I had an error:

INFO: Failure authenticating with BASIC 'Jenkins'@MYJENKINS
Failed to fetch slave info from Jenkins CODE: 401

It turned out that swarm-client requires password to be single quoted (even if no special character used)
http://echelog.com/logs/browse/jenkins/1401228000

The workaround is trivial:

jenkins::slave::ui_user: "'USER'" # keep single quotes
jenkins::slave::ui_pass: "'PASSWORD'" # keep single quotes

Can it be included into the template?

@jhoblitt
Copy link
Member

jhoblitt commented Sep 8, 2015

It would probably be better to change the template to use single quotes:

https://github.com/jenkinsci/puppet-jenkins/blob/master/templates/jenkins-slave-defaults.erb#L58-L59

@iakovgan
Copy link
Contributor Author

iakovgan commented Sep 8, 2015

Yes. Adding single quotes to the template is the best solution i guess.

@rtyler
Copy link

rtyler commented Sep 9, 2015

@iakovgan if you want to make a quick, PR I'll merge it happily, otherwise I'll get to this over the weekend :)

@rtyler rtyler added this to the 1.6.0 - Kato milestone Sep 9, 2015
@rtyler rtyler added the bug Something isn't working label Sep 9, 2015
@iakovgan
Copy link
Contributor Author

@rtyler Here is the pull request: #374

@rtyler rtyler closed this as completed in 0897b2f Oct 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants