Class SslAgentLifeCycleAdapter
- java.lang.Object
-
- jetbrains.buildServer.agent.AgentLifeCycleAdapter
-
- jetbrains.buildServer.agent.impl.ssl.SslAgentLifeCycleAdapter
-
- All Implemented Interfaces:
EventListener,AgentLifeCycleListener
public class SslAgentLifeCycleAdapter extends AgentLifeCycleAdapter
Adapter for fetching custom user ssl certificates from buildServer.- Since:
- 2018.1
- Author:
- Mikhail Khorkov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSslAgentLifeCycleAdapter.ClientInfostatic classSslAgentLifeCycleAdapter.ClientInfoImpl
-
Constructor Summary
Constructors Constructor Description SslAgentLifeCycleAdapter(BuildAgent agent, BuildAgentConfiguration buildAgentConfiguration, EventDispatcher<AgentLifeCycleListener> events, SSLTrustStoreProvider sslTrustStoreProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildStarted(AgentRunningBuild build)Called after agent receives start build command from the server.voidsyncCertificates(SslAgentLifeCycleAdapter.ClientInfo clientInfo)-
Methods inherited from class jetbrains.buildServer.agent.AgentLifeCycleAdapter
afterAgentConfigurationLoaded, afterAtrifactsPublished, agentInitialized, agentShutdown, agentStarted, beforeAgentConfigurationLoaded, beforeBuildFinish, beforeBuildFinish, beforeBuildInterrupted, beforeRunnerStart, beforeRunnerStart, buildFinished, buildFinished, checkoutDirectoryRemoved, checkoutModeResolved, dependenciesDownloaded, messageLogged, messageLogged, personalPatchApplied, personalPatchReverted, pluginsLoaded, preparationFinished, runnerFinished, sourcesUpdated
-
-
-
-
Constructor Detail
-
SslAgentLifeCycleAdapter
public SslAgentLifeCycleAdapter(@NotNull BuildAgent agent, @NotNull BuildAgentConfiguration buildAgentConfiguration, @NotNull EventDispatcher<AgentLifeCycleListener> events, @NotNull SSLTrustStoreProvider sslTrustStoreProvider)
-
-
Method Detail
-
buildStarted
public void buildStarted(@NotNull AgentRunningBuild build)Description copied from interface:AgentLifeCycleListenerCalled after agent receives start build command from the server. To register custom build parameters provideAgentPropertiesExtensionagent extension. Note, methods from that interface are called before that method.- Specified by:
buildStartedin interfaceAgentLifeCycleListener- Overrides:
buildStartedin classAgentLifeCycleAdapter- Parameters:
build- information about running build
-
syncCertificates
public void syncCertificates(@NotNull SslAgentLifeCycleAdapter.ClientInfo clientInfo)
-
-