@Internal
public interface AgentCapabilityService
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
addCapability(PipelineDefinition agent,
String key,
String value)
Add new capability for agent.
|
ReadOnlyCapabilitySet |
getAgentCapabilities(PipelineDefinition agent,
boolean includeShared) |
void |
removeCapabilities(PipelineDefinition agent)
Remove all capabilities for agent.
|
void |
removeCapability(PipelineDefinition agent,
String capabilityKey)
Remove agent's capability.
|
ErrorCollection |
updateCapability(PipelineDefinition agent,
String key,
String value,
CapabilitySource capabilitySource)
Update value of existing capability.
|
void removeCapability(@NotNull PipelineDefinition agent, @NotNull String capabilityKey)
void removeCapabilities(@NotNull PipelineDefinition agent)
agent
- @NotNull ReadOnlyCapabilitySet getAgentCapabilities(@NotNull PipelineDefinition agent, boolean includeShared)
includeShared
- if shared credentials should be returnedErrorCollection addCapability(@NotNull PipelineDefinition agent, @NotNull String key, @NotNull String value)
ErrorCollection updateCapability(@NotNull PipelineDefinition agent, @NotNull String key, @Nullable String value, @NotNull CapabilitySource capabilitySource)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.