Class RestartableJenkinsRule

java.lang.Object
org.jvnet.hudson.test.RestartableJenkinsRule
All Implemented Interfaces:
org.junit.rules.MethodRule

@Deprecated public class RestartableJenkinsRule extends Object implements org.junit.rules.MethodRule
Deprecated.
New code should use JenkinsSessionRule. RestartableJenkinsRule will evaluate your test method to collect all steps, then execute them in turn and restart Jenkins in between each step, after the test method has exited. That is probably not what you would expect from looking at sources, and it will not work naturally with After etc. Tests needing to dynamically disable plugins, simulate crashes, etc. are better written using RealJenkinsRule.
Since:
1.567
Author:
Kohsuke Kawaguchi
  • Field Details

    • j

      public JenkinsRule j
      Deprecated.
    • home

      public File home
      Deprecated.
      JENKINS_HOME
  • Constructor Details

    • RestartableJenkinsRule

      public RestartableJenkinsRule()
      Deprecated.
  • Method Details