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

Deprecating JenkinsRule.setQuietPeriod #887

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/main/java/jenkins/model/JenkinsAdaptor.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package jenkins.model;

/**
* Access the package protected quiet period
* @deprecated use {@link Jenkins#setQuietPeriod}
*/
@Deprecated
public class JenkinsAdaptor {
public static void setQuietPeriod(Jenkins jenkins, int quietPeriod) {
jenkins.quietPeriod = quietPeriod;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/jvnet/hudson/test/JenkinsRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1888,6 +1888,10 @@ public void assertEqualBeans(Object lhs, Object rhs, String properties) throws I
}
}

/**
* @deprecated use {@link Jenkins#setQuietPeriod}
*/
@Deprecated
public void setQuietPeriod(int qp) {
JenkinsAdaptor.setQuietPeriod(jenkins, qp);
}
Expand Down
Loading