Class BuildWatcher

java.lang.Object
org.junit.rules.ExternalResource
org.jvnet.hudson.test.BuildWatcher
All Implemented Interfaces:
org.junit.rules.TestRule

public final class BuildWatcher extends org.junit.rules.ExternalResource
Echoes build output to standard error as it arrives. Usage:
@ClassRule public static BuildWatcher buildWatcher = new BuildWatcher();
Should work in combination with JenkinsRule or RestartableJenkinsRule.
Since:
1.607
See Also:
  • Constructor Details

    • BuildWatcher

      public BuildWatcher()
  • Method Details

    • before

      protected void before() throws Throwable
      Overrides:
      before in class org.junit.rules.ExternalResource
      Throws:
      Throwable
    • after

      protected void after()
      Overrides:
      after in class org.junit.rules.ExternalResource