-
-
Notifications
You must be signed in to change notification settings - Fork 105
[JENKINS-54133] Document remote console note behavior in test #80
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-54133] Document remote console note behavior in test #80
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.
Very helpful to have a test that demonstrates the crux of the issue, thanks!
src/test/java/org/jenkinsci/plugins/workflow/steps/durable_task/ShellStepTest.java
Show resolved
Hide resolved
Perhaps. But consider the that is only identifiable as “Ant target names” due to the context that this is coming from a process running Ant and not something completely unrelated. So if we go the So, unless a very different approach is taken, we need to have the master JVM create and sign the notes in advance, then serve them to the agent callable. |
|
I agree that pre-generating the notes makes sense given the constraints, it just seems like the API was not really designed to support this use case cleanly. Given that it's the best option in some cases, I think updating the documentation like you did will be very helpful in case it comes up for anyone in the future. |
Indeed. It is a bit hard to say what the API was designed for. See jenkinsci/jenkins@2d7e0d9. There is a more detailed discussion in SECURITY-382. |
svanoort
left a comment
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.
Looks fine to me, and I'm always happy to have more testcases -- especially when they include explanations and are easy to read like this one!
Studying JENKINS-54133.
Safe to merge, but does not do anything at the moment.