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

jenkins-cli commands don't work when Jenkins authentication is turned on #21

Open
flyte opened this issue Dec 10, 2014 · 3 comments
Open

Comments

@flyte
Copy link

flyte commented Dec 10, 2014

I have Jenkins' own database authentication turned on with matrix based security and the ansible script can't install extensions or restart Jenkins:

failed: [10.0.0.10] => {"changed": true, "cmd": ["java", "-jar", "/opt/jenkins/jenkins-cli.jar", "-s", "http://localhost:8080", "safe-restart"], "delta": "0:00:00.866460", "end": "2014-12-10 15:55:43.202089", "rc": 1, "start": "2014-12-10 15:55:42.335629"}
stderr: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Read permission

Could we have the ability to provide a username and password to use for these commands? This, and/or public key auth:
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI#JenkinsCLI-WorkingwithCredentials

@mputilin
Copy link

any plans to fix that? and it would be great to configure security using that role too

@mpodber1971
Copy link

see #61

@takluyver
Copy link
Contributor

I have worked around this by setting up an SSH key and adding -ssh -user {{ jenkins_admin_user }} to the end of jenkins_cli_cmd . But I don't know how to automate generating an ssh key and adding it to Jenkins config.

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

Successfully merging a pull request may close this issue.

4 participants