-
Notifications
You must be signed in to change notification settings - Fork 150
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-74017] Extract inline script block from BapSshPublisherPlugin/config.jelly
#361
Conversation
const { configName, effectiveDisableExec } = dataHolder.dataset; | ||
|
||
exec_disabled[configName] = effectiveDisableExec === "true"; |
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.
There doesn't seem to be more correct way to convert string to boolean. We don't expect any values other than "true"
or "false"
, so this should be good enough.
Could alternatively use JSON.parse(effectiveDisableExec)
here. Let me know if you like it more and I should change it.
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!
@gmcdonald Can this please be released? That will get us one step closer to marking this plugin as finished in the CSP compatibility project tracking spreadsheet. If that is not practical, please let me know if I should adopt this plugin. Thanks! |
Thanks @basil, I will see about getting it done , will aim for the weekend if that is ok ? |
Sure, thank you! |
@gmcdonald Gentle ping that we're still interested in a release. BTW setting up https://www.jenkins.io/doc/developer/publishing/releasing-cd/ would make this less of a personal effort. |
Thanks @basil will try and migrate to CD releasing tomorrow. My only concern was about how to interact with the parent publish-over plugin if that affects things at all when it comes time to release a new version of that (and perhaps even a new release of that could auto-bump dependant plugins with its new version number !?) |
There shouldn't be any negative interactions with dependent plugins when adopting CD. Dependabot is enabled for this repository, so you should get a dependabot PR when the parent plugin is released again. |
PRs created for adopting CD - |
https://issues.jenkins.io/browse/JENKINS-74017
Testing done
Added 2 SSH servers on the Global Configuration page. Went to create a freestyle project. The affected script block is executed upon entering the page. I've checked whether the values and value types stored inside the global variable are the same before and after the change.
Before the change
After the change
Submitter checklist