Skip to content

Commit

Permalink
Deprecating JenkinsRule.setQuietPeriod (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Dec 18, 2024
1 parent ee6dc8d commit fbb0c54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit fbb0c54

Please sign in to comment.