Class InboundAgentExtension

java.lang.Object
org.jvnet.hudson.test.junit.jupiter.InboundAgentExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.Extension

public class InboundAgentExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback
Manages inbound agents. While these run on the local host, they are launched outside of Jenkins.

To avoid flakiness when tearing down the test, ensure that the agent has gone offline with:

 Slave agent = inboundAgents.createAgent(r, […]);
 try {
     […]
 } finally {
     inboundAgents.stop(r, agent.getNodeName());
 }
 
See Also: