-
Notifications
You must be signed in to change notification settings - Fork 29
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
ApiTokenAuthentication #82
Comments
@Jonatha1983 good call, there is definitely a gap in the documentation around it. I'll try to add some documentation today. Could you elaborate on what you are trying to accomplish? |
We are trying to be able to use the same versions of dependencies used by our Jenknis. and ran retrieveJenkinsPluginData but got 403 Forbidden with user anonymous |
by the way: retrieveJenkinsVersion working perfectly!! |
If I remember right, you should be able to replace
with
I'm going to add a few tests to verify that that works, but you might not have the appropriate permissions to access them from the Jenkins server. I think you need to have like admin or something type privileges for it, but I'll figure it out some point soon. |
I might be wrong on that also - see https://support.cloudbees.com/hc/en-us/articles/218756317-How-can-non-admin-users-view-the-installed-plugins- I'll do some investigation |
I imported your project with include build (Composit Build) to debug it - and I found:
what do you think ? Also I wanted to ask if today the gradle file take in consideration the plugin versions or it just for human validation ? Thanks again !! |
I think I did that by design, because the same headers were sent - it is tough to remember and I don't have an integration test against a
If I am interpreting your question right, the plugins provided to the build script are used in compilation of the |
Thanks @mkobit ! And about the Authentication vs Authorization ? would you want me to create a pull request with the change ? |
@Jonatha1983 ahh, I think I now understand what you are saying. The headers for I would to add an additional test that tests those headers against an actual Jenkins instance, but if you don't have time to do that don't worry about it, I can do that part of on my own. |
Ok so I went and took a quick look
Works for me when I was using a local project, but then trying out the same pattern with So, probably a bug somewhere in this plugin I'll look at it more |
That is definitely the issue |
I am about to push if it is ok the tests i ll push later on this week - since I need to learn more the code ... |
Sounds good @Jonatha1983 , open it whenever you are ready - whatever you have I'll take and get it in, and try and release a new version with the fixes. I think I'll postpone writing tests against an actual Jenkins in this project since it requires a bit of test infrastructure I don't have yet. |
@mkobit I think you need to gather me permissions |
@Jonatha1983 would you mind forking and opening a pull request? |
Sure , i ll read how to do it and do it today on.... thanks |
Will be released as If I don't figure it out by Friday will manually release it instead of relying on Circle CI automation Closing |
Hi @mkobit
First thing THANKS!!!! You are a genius!!!
I searched on some docs on how to create: ApiTokenAuthentication
(* I am new to Kotlin )
Thanks ahead !!!
The text was updated successfully, but these errors were encountered: