public interface CapabilitySetManager extends RemotedCapabilitySetManager
Modifier and Type | Method and Description |
---|---|
CapabilitySet |
createAgentCapabilitySet(LocalAgentDefinition pipelineDefinition)
Create an agent scope capability set for local agents
|
CapabilitySet |
createAgentCapabilitySet(RemoteAgentDefinition pipelineDefinition)
Create an agent scope capability set for remote agents
|
List<String> |
findUniqueCapabilityKeys()
Finds all the distinct capability keys
|
ReadOnlyCapabilitySet |
getCombinedCapabilitySet(CapabilitySet agentCapabilitySet)
Gets a combined "effective" capabilitySet given an agent's capabilitySet.
|
ReadOnlyCapabilitySet |
getCombinedCapabilitySet(CapabilitySet agentCapabilitySet,
CapabilitySet sharedCapabilitySet)
Gets a combined "effective" capabilitySet given an agent's capability set and a shared capability set
The agent capabilitySet will override capabilities in the
CapabilityScope.SHARED capabilities if there's
a precise key match. |
ElasticImageConfiguration |
getElasticImage(CapabilitySet capabilitySet) |
PipelineDefinition |
getPipelineDefinition(CapabilitySet capabilitySet) |
CapabilitySet |
getSharedCapabilitySet(CapabilitySet agentCapabilitySet)
|
CapabilitySet |
getSharedRemoteCapabilitySet()
Gets the remotely shared capabilities
|
Collection<Capability> |
getSystemCapabilities(String type)
Collection of
Capability which have keys prefixed with system.{type}
Used to identify Bamboo system capabilities for Builders / JDKs. |
Collection<Capability> |
getSystemCapabilitiesByKey(String key)
Collection of
Capability which have the specified key |
Collection<String> |
getSystemCapabilityKeys(String type,
boolean isElasticEnabled)
Returns a list of Capability Keys that match the given type
|
void |
saveCapabilitySet(CapabilitySet capabilitySet)
Saves a capability set
|
getCombinedCapabilitySet, getSharedLocalCapabilitySet
CapabilitySet getSharedRemoteCapabilitySet()
CapabilitySet
@Nullable @Deprecated CapabilitySet getSharedCapabilitySet(@NotNull CapabilitySet agentCapabilitySet)
CapabilitySetManagerUtils.getSharedCapabilitySet(com.atlassian.bamboo.v2.build.agent.capability.CapabilitySetManager, java.lang.Class<? extends com.atlassian.bamboo.v2.build.agent.capability.CapabilitySet>)
insteadagentCapabilitySet
- void saveCapabilitySet(@NotNull CapabilitySet capabilitySet)
capabilitySet
- @NotNull CapabilitySet createAgentCapabilitySet(@NotNull LocalAgentDefinition pipelineDefinition)
pipelineDefinition
- @NotNull CapabilitySet createAgentCapabilitySet(@NotNull RemoteAgentDefinition pipelineDefinition)
pipelineDefinition
- @NotNull ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull CapabilitySet agentCapabilitySet)
CapabilityScope
.
The agent capabilitySet will override capabilities in the CapabilityScope.SHARED
capabilities if there's
a precise key match.agentCapabilitySet
- ReadOnlyCapabilitySet getCombinedCapabilitySet(@NotNull CapabilitySet agentCapabilitySet, @Nullable CapabilitySet sharedCapabilitySet)
CapabilityScope.SHARED
capabilities if there's
a precise key match.@NotNull Collection<String> getSystemCapabilityKeys(@NotNull String type, boolean isElasticEnabled)
type
- eg "builder" or "jdk"@NotNull Collection<Capability> getSystemCapabilities(@NotNull String type)
Capability
which have keys prefixed with system.{type}
Used to identify Bamboo system capabilities for Builders / JDKs.type
- @NotNull Collection<Capability> getSystemCapabilitiesByKey(@NotNull String key)
Capability
which have the specified keykey
- @NotNull List<String> findUniqueCapabilityKeys()
@Nullable PipelineDefinition getPipelineDefinition(@NotNull CapabilitySet capabilitySet)
@Nullable ElasticImageConfiguration getElasticImage(@NotNull CapabilitySet capabilitySet)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.