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 interface
SslAgentLifeCycleAdapter.ClientInfo
static class
SslAgentLifeCycleAdapter.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 void
buildStarted(AgentRunningBuild build)
Called after agent receives start build command from the server.void
syncCertificates(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:AgentLifeCycleListener
Called after agent receives start build command from the server. To register custom build parameters provideAgentPropertiesExtension
agent extension. Note, methods from that interface are called before that method.- Specified by:
buildStarted
in interfaceAgentLifeCycleListener
- Overrides:
buildStarted
in classAgentLifeCycleAdapter
- Parameters:
build
- information about running build
-
syncCertificates
public void syncCertificates(@NotNull SslAgentLifeCycleAdapter.ClientInfo clientInfo)
-
-