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-37389] add @Symbol("custom") to CustomTool's descriptor #63
Conversation
0030044
to
2229f5f
Compare
@oleg-nenashev could you take a look? A very small PR which makes the tools management safer. |
2229f5f
to
b9203a9
Compare
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.
In principle it should be Okay. Maybe even 'customTool' so that avoid potential naming conflicts
The `@Symbol` annotation defines a unique identifier which is used by DSL. Whit this commit it is possible to distinguish a difference between tools when the the `tool` step is called. Example: * tool name: 'myTool', type: 'jdk' <- returns JDK with id "myTool" * tool name: 'myTool', type: 'custom' <- returns custom tool with id "myTool"
b9203a9
to
f393e66
Compare
Jenkins failure is not related to the introduced changes. I have no powers to restart the build, so I force pushed the commit so scheduled it again. If you prefer, I can change it from tool name: 'xyz', type: 'custom' vs. tool name: 'xyz', type: 'customTool' Where other don't use the suffix: tool name: '17', type: 'jdk'
tool name: '3.2.5', type: 'maven'
tool name: '16', type: 'nodejs' Please decide. I'll update (or not) based on the decision the PR and then we may merge it and maybe even release a new version (would be great) 🙂 |
Ping 🙂 |
Pong 🎾 |
If there is no issue, can someone accept the PR ? |
@oleg-nenashev Is there any reason that this PR is not merged yet? |
Hello, there are 2.key reasons:
All contributors interested in the plugin are welcome to step up as maintainers. Thanks for understanding |
I would consider adding a notice in
I wish you all the best ❤️ |
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.
OLK, let's merge it so that it does not wait in the queue. I might get to releasing plugins during my vacation in Aug
The
@Symbol
annotation defines a unique identifier which is used by DSL. Whit this commit it is possible to distinguish a difference between tools when the thetool
step is called. Example:Addresses JENKINS-37389 Add @Symbol("custom") to Custom Tool's ToolDescriptor.
I didn't add any tests. Every extension should be annotated with
@Symbol
. Its value must be unique within a specific extension point, and there are no other tools withcustom
identifier (the change is safe).