I have Jenkins setup with the Bitbucket OAuth plugin for security.
I'm using SaltStack to
setup Jenkins, 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.
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?