I have Jenkins setup with the Bitbucket OAuth plugin for security.

I'm using SaltStack to setup Jenkins 
<https://github.com/saltstack-formulas/jenkins-formula>, which uses the 
Jenkins CLI jar to interface with Jenkins. Obviously when Jenkins has zero 
security this works juuuust fine.

However, when I turn on the BitBucket OAuth security, it no longer works.

That SaltStack formula is handy enough to share the command line it uses 
and I can give it a try myself:

    $ java -jar /var/cache/jenkins/jenkins-cli.jar -s http://127.0.0.1:8080 
-i /var/lib/jenkins/.ssh/id_rsa reload-configuration
    Authentication failed. No private key accepted.

cue sad trombone <https://www.youtube.com/watch?v=yJxCdh1Ps48>.

I've added the output of `ssh-keygen -y /var/lib/jenkins.ssh/id_rsa` to my 
user credentials in the Jenkins management screen, but as you can see... 
that doesn't seem to help.

So why doesn't Jenkins authenticate my key, and more importantly, how can I 
get that working?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f6a5f358-3395-4d8a-ae22-c4066e1c643b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to