Skip to content
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

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

yaroslavafenkin
Copy link
Contributor

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

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

const { configName, effectiveDisableExec } = dataHolder.dataset;

exec_disabled[configName] = effectiveDisableExec === "true";
Copy link
Contributor Author

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.

@basil basil added the internal label Oct 29, 2024
Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@basil basil merged commit 07906da into jenkinsci:main Oct 29, 2024
14 of 15 checks passed
@basil
Copy link
Member

basil commented Oct 29, 2024

@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!

@gmcdonald
Copy link
Contributor

Thanks @basil, I will see about getting it done , will aim for the weekend if that is ok ?

@basil
Copy link
Member

basil commented Oct 29, 2024

Sure, thank you!

@basil
Copy link
Member

basil commented Nov 13, 2024

@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.

@gmcdonald
Copy link
Contributor

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 !?)

@basil
Copy link
Member

basil commented Nov 18, 2024

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.

@gmcdonald
Copy link
Contributor

PRs created for adopting CD -

#363
jenkins-infra/repository-permissions-updater#4181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants