-
Notifications
You must be signed in to change notification settings - Fork 279
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
Remove deprecated code #1652
Remove deprecated code #1652
Conversation
# Conflicts: # plugin/pom.xml # plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/RecordIssuesStep.java # plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java # plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/MiscIssuesRecorderITest.java # plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/StepsITest.java
import static org.mockito.Mockito.*; | ||
|
||
/** | ||
* Tests the class {@link QualityGate}. | ||
* | ||
* @author Ullrich Hafner | ||
*/ | ||
class QualityGateTest extends SerializableTest<QualityGate> { | ||
class QualityGateTest extends SerializableTest<WarningsQualityGate> { |
Check notice
Code scanning / CodeQL
Unused classes and interfaces Note test
I'll need to replace deprecated parameters of pipeline steps in multiple repositories and branches before I can safely upgrade warnings-ng-plugin from 10.7.0 to 11.0.0 in production. Is there a summary list of the required changes? I attempted to make one below.
Step parameters newly deprecated in 11.0.0:
|
Thanks for collecting this information! I think you found all changes. I added these steps to the release notes! |
Hi, thanks for documenting these changes. Please excuse my ignorance of this information, but is there some place these changes are documented beforehand or for the future? We use the warnings-ng plugin for taskscanner, parasoft, pylint, iar, gcc, cmaken, mypy in about 50 pipeline projects. When updating the warnings-ng plugin we got an syntax error across most of our pipelines. Is there some way we could have known this was coming (except monitoring the PR's and commits in this repo)? Since we will have to update most of our pipelines, it would be nice if we could have an idea which breaking syntax changes are coming, to plan our maintenance accordingly. Thanks for your hard work in maintaining this plugin! |
The required changes are typically part of the release notes (https://github.com/jenkinsci/warnings-ng-plugin/releases/tag/v11.0.0) or the pull request. Most removed attributes have been marked as deprecated for quite a while. So it makes sense to check these before doing a major version upgrade. For some of the properties it wasn't possible to leave the property in place as I moved the functionality to a different plugin. |
Thanks for this information. We will keep in mind to check the release notes for further changes. Do you have a plan/roadmap for future syntax changes? Since we have to update quite a few of them it would be helpful to know is new changes will be coming soon. If not we will update to the new syntax, otherwise we will wait a bit until the new syntax is added.
|
There are no major upgrades planned in the near future since my research semester is finished I am back to my normal schedule which doesn't allow to make bigger changes... |
When I was collecting data for #1652 (comment), I hoped Jenkins could be made to automatically warn about uses of deprecated parameters in pipelines; either as part of Pipeline itself, or as a separate plugin. Alas, several of the removed parameters had not been deprecated, so it would not have been possible to warn about them. |
Hi |
Yes, you need to use the reference recorder step. See forensics api plugin. |
Thanks.
This to use two plugins now ? recordIssues + discoverReferenceBuild. An example would really help. Thanks. |
Hello. Got here by a long journey - from failing pipelines. Disappearing It's hard to me to realize what's the proper migration flow after this deprecation, any help appreciated. |
@maciejmatczak, did you look at the "Upgrade path" in https://github.com/jenkinsci/warnings-ng-plugin/releases/tag/v11.0.0? |
Remove all deprecated methods and fields.
Based on #1649.