-
Notifications
You must be signed in to change notification settings - Fork 9
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
Authorization/JAXB-API for Jenkins #55, #57 #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, George!
This looks good. I found a couple of nits.
...pse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/HudsonOperation.java
Outdated
Show resolved
Hide resolved
|
||
} | ||
|
||
@Deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop it.
mylyn.builds/org.eclipse.mylyn.hudson.core/META-INF/MANIFEST.MF
Outdated
Show resolved
Hide resolved
...pse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/HudsonOperation.java
Outdated
Show resolved
Hide resolved
@@ -4,14 +4,18 @@ Bundle-Name: %Bundle-Name | |||
Bundle-SymbolicName: org.eclipse.mylyn.hudson.core;singleton:=true | |||
Bundle-Version: 3.26.0.qualifier | |||
Bundle-Vendor: %Bundle-Vendor | |||
Require-Bundle: jakarta.xml.bind;bundle-version="2.3.3", | |||
org.eclipse.core.runtime;bundle-version="0.0.0", | |||
Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep alphabetic order for dependencies
Hi Wim, The build framework is weird, I don't understand what the intent was in its design. One issue I'm unable to solve is how use the JSESSION id to authenticate when running a build using ones password. I've been testing it against my local Jenkins instance, and against https://ci.eclipse.org/mylyn/job/github-mylyn/. Also, I haven't seen any sign that the crumb is needed. Could be my jenkins hasn't been set up fully. |
I have finally remember the password so that I could reactivate the Hudson and Jenkins test instances of the http://mylyn.org domain. Maybe that helps. |
If that is the same instances that the unit tests are using (e.g.: https://mylyn.org/hudson-3.3.3, http://mylyn.org/jenkins-2.32.3/) it doesn't help. Neither of them accept the ''crumbIssuer/api/json" request |
Maybe the versions are to old to support that or we have never configure this. |
Looks like 2.32.3 was released back in 2016 so I would say it's too old. |
Hi @wimjongman I would suggest merging the code and deal with any issues that crop up with a new ticket George |
Hey George. Cool! Do you want to take a look at the review comments before merging? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed my comments regarding issues in .target, I need to have closer look later.
I think I've addressed the comments to the best of my ability. When I tried to address the comments about the .target I ran into unresolved references that I have no idea how to fix |
Don't merge yet. Started looking into the session Id problem and found some very not nice behaviour |
Solved the "sessionId" issue. user/pw can run build now. Caveat is that if Jenkins is using StrictCrumbIssuer with a timeout set for the crumb one will be unable to run builds once the crumb expires. I can't see any way to have a new crumb created in this situation with how the build framework is designed. |
George, is the token used in the password field? |
Hi Wim,
yes.
It's getting complicated. Depending on the system, authentication can be by:
* Token
* username/pw
* username/token
George
…On 2023-03-07 00:30, Wim Jongman wrote:
George, is the token used in the password field?
—
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP36HKKWKYQEAMK4YEUUM23W23WZDANCNFSM6AAAAAAVFIKDPQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, it is. To be clear by 'system' do you mean systems like Jenkins or different Jenkins versions? Is the UI still using "Hudson"? |
Yes,
* Token: Bamboo 8, GitHub, Jira 8
* username/pw: Bamboo 8, Jenkins, Jira 8
* username/token: Jira 10, Jenkins (modern)
The connector is advertised as 'Hudson (supports Jenkins)' but I don't
see anything in the UI itself
…On 2023-03-07 01:21, Wim Jongman wrote:
Yes, it is. To be clear by 'system' do you mean systems like Jenkins
or different Jenkins versions? Is the UI still using "Hudson"?
—
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP36HKKAE3NTNRANAN6QT6DW234ZTANCNFSM6AAAAAAVFIKDPQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes we should use a newer Jenkins version in our new test infrastructure (see Multipass setup supports >= 2_303_3) |
Could someone merge the PR? |
Added "crumbissuer" authentication. Do we still need the old authentication code?
Fixed missing JAXB-API complaint
(https://www.vogella.com/blog/eclipse-rcp-java-11-jaxb/)