Skip to content
New issue

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

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

Already on GitHub? # to your account

Sauce labs Credentials #538

Closed
hite77 opened this issue Mar 19, 2016 · 1 comment
Closed

Sauce labs Credentials #538

hite77 opened this issue Mar 19, 2016 · 1 comment

Comments

@hite77
Copy link

hite77 commented Mar 19, 2016

Puppet module does not support Sauce labs Credentials.
Gui: Add Credential: Kind is Sauce Labs.
In Credentials File: it will indicate that it is
<hudson.plugins.sauce__ondemand.credentials.SauceCredentials plugin="sauce-ondemand@1.149">

create_resources("jenkins::credentials")... will call method create_or_update_credentials. Which does not support this type of credential.

I tried listing the json for the credentials and it caused an error saying...
SauceCredentials{apiKey=*******==, username='username'} was not an unsupported type of the method. I removed the key hash, and username, was another string entirely.

I have tried puppetizing the entire credentials file, but the api key does not translate correctly, unless I take the file from the running jenkins instance.

If I stand up another jenkins, the secret keys will change, and hash will no longer be interpretable.

Please someone who has puppetized sauce labs credentials, reach out to me.
Or add support for this kind of credential.

Thanks.

@hite77
Copy link
Author

hite77 commented Mar 20, 2016

Found out that you need to create a class hudson.plugins.sauce_ondemand.credentials.SauceCredentials, and provide arguments to the constructor. And can add this credential using code from puppet_helper.groovy.
I've written some code, and have been able to execute the groovy through jenkins cli, and it successfully adds the credential. So this is not an issue, although it might be a good addition for others.

@hite77 hite77 closed this as completed Mar 20, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant