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-72252] Warn 12 months and 3 months before end of Java support #8661

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

@Override
public boolean isActivated() {
return !disabled && getDeprecationPeriod().toTotalMonths() < 18;
return !disabled && getDeprecationPeriod().toTotalMonths() < 12;

Check warning on line 118 in core/src/main/java/jenkins/monitor/JavaVersionRecommendationAdminMonitor.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 118 is only partially covered, 2 branches are missing
}

@Override
Expand Down Expand Up @@ -156,7 +156,7 @@

@NonNull
private static Severity getSeverity() {
return getDeprecationPeriod().toTotalMonths() < 9 ? Severity.DANGER : Severity.WARNING;
return getDeprecationPeriod().toTotalMonths() < 3 ? Severity.DANGER : Severity.WARNING;

Check warning on line 159 in core/src/main/java/jenkins/monitor/JavaVersionRecommendationAdminMonitor.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 159 is only partially covered, one branch is missing
}

/**
Expand Down
Loading