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

Add option to bump baseline of rjrinit plugin default to true #781

Conversation

jtnord
Copy link
Member

@jtnord jtnord commented Jun 5, 2024

#780 (comment)

to get an incremental build that can then be used in the bom
jenkinsci/bom#3284

Testing done

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

if the version of Jenkins used by RealJenkinsRuleInit has detached
plugins in the version of Jenknis used for the test then this can
uncessescarily pull in detached plugins.

In most cases this is harmless, but in some cases these plugins may be
prevented from running under the test (e.g. testing FIPS and one of the
detached plugins like eddsa is not FIPS complaint and blocks startup).

The plugin itself has limited exposure to the Jenkins api (via
hudson.plugin.Plugin and RealJenkinsRule$Init2).

Code running from the plugin tests inside RealJenkinsRule use the
uberClassloader and if the plugin was targetting a lower core (where the
dependencies have been deteached, they should still be included as this
change only affects the version of the RealJenkinsRuleInit plugin.
jtnord added a commit to jtnord/bom that referenced this pull request Jun 5, 2024
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Prefer this over #780 if it works out.

* The intended use case of this is to prevent any detached plugins being dragged in when they would not normally be.
* @param updateRealJenkinsRuleInitPluginBaseline {@code false} to skip updating the plugin, {@code true} (the default) to update the baseline.
*/
public RealJenkinsRule updateRealJenkinsRuleInitPluginBaseline(boolean updateRealJenkinsRuleInitPluginBaseline) {
Copy link
Member

Choose a reason for hiding this comment

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

Or just do it unconditionally? If there are no known problems, why even offer the option to not do it?

Copy link
Member

Choose a reason for hiding this comment

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

@jtnord
Copy link
Member Author

jtnord commented Jun 7, 2024

closing in favor of #782

@jtnord jtnord closed this Jun 7, 2024
@jtnord jtnord deleted the add-option-to-bump-baseline-of-rjrinit-plugin-default-to-true branch June 7, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants