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

Print deprecation warning when deprecated arguments are used #699

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

basil
Copy link
Member

@basil basil commented Oct 26, 2023

Now that I have migrated common usages away from these deprecated arguments, ensure that a warning is printed if a user is still invoking Remoting with a deprecated argument. I haven't yet added a warning for -jnlpUrl because I want to wait for jenkinsci/jenkins#8639 to ship in a few weekly releases first. The -tcp and -connectTo arguments weren't deprecated at the command-line argument level but their implementations were marked with @Deprecated, so I am deprecating the command-line arguments too for consistency. I could find no uses besides the WMI Windows Agents plugin tests, and that plugin is itself already deprecated.

Testing done

Invoked the various arguments at the command-line and verified that a deprecation warning was printed.

@basil basil added the enhancement For changelog: An enhancement providing new capability. label Oct 26, 2023
@basil basil merged commit b493ab7 into jenkinsci:master Oct 27, 2023
12 checks passed
@basil basil deleted the deprecations branch October 27, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For changelog: An enhancement providing new capability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants