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

Unable to use cert credentials in newer version of plugin #154

Open
shapiroj opened this issue Apr 18, 2017 · 9 comments
Open

Unable to use cert credentials in newer version of plugin #154

shapiroj opened this issue Apr 18, 2017 · 9 comments

Comments

@shapiroj
Copy link

We are using cert credentials with version 1.10.2. We'd like to upgrade to version 1.11 for the pipeline support. However, cert credential usage was disabled with 460d423, pointing to some brokenness with a previous commit. Are there any more details on this (https://github.com/jenkinsci/stashnotifier-plugin/pull/98/files?), and is it possible to get this feature re-enabled?

@Rykus0
Copy link

Rykus0 commented May 18, 2017

For me and my team, SSH is the only authentication method available.

@scaytrase
Copy link
Member

How certificates are related with SSH, can you explain? Maybe I just misunderstand something, but for me SSH stands with SSH keys and SSL with Certificate credential authentication via SSL

@Rykus0
Copy link

Rykus0 commented May 18, 2017

I guess I misunderstood, and maybe this is a different issue. SSH credentials are not available as choices for the plugin - only username and password. I guess I was equating an SSH key to a certificate - my apologies.

@scaytrase
Copy link
Member

SSH keys are no way to use for HTTP API requests, unfortunately

@Rykus0
Copy link

Rykus0 commented May 18, 2017

Ok, so I guess this plugin doesn't do what I thought, because what I'm thinking (updating the build status) doesn't need any authentication. I'll just create a shell script or something to run post-build and do it with curl. Sorry for muddying up this thread.

@scaytrase
Copy link
Member

Generally this plugin does the same - it just performs http api call with json payload, but I really doubt that you can modify Bitbucket data (mark builds) without access to certain repository.

Documentation says the following:

The authenticated user must have LICENSED permission or higher to call this resource.

https://developer.atlassian.com/static/rest/stash/latest/stash-build-integration-rest.html#resources

@Rykus0
Copy link

Rykus0 commented May 18, 2017

Ok, maybe I was logged in when I did it before. I guess I need to burn a license just so Jenkins can report build status back... I'll figure it out. Again, sorry for putting all this here.

@shapiroj
Copy link
Author

shapiroj commented Jun 9, 2017

Any ideas on the original problem? Cert credentials are no longer usable for the notifier plugin.

@scaytrase
Copy link
Member

@shapiroj I've no idea how to reproduce or test this, since the setup is very uncommon, so if you'll provide a PR with some kind of fixes we can make things faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants