Class AfterSuccessfulDeploymentTriggerConfigurator
java.lang.Object
com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
com.atlassian.bamboo.trigger.dependency.AfterSuccessfulDeploymentTriggerConfigurator
- All Implemented Interfaces:
EnvironmentAwareEnvironmentTriggerConfigurator,TriggerConfigurator
public class AfterSuccessfulDeploymentTriggerConfigurator
extends AbstractEnvironmentTriggerConfigurator
implements EnvironmentAwareEnvironmentTriggerConfigurator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode -
Field Summary
FieldsFields inherited from class com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
cachedPlanManager, CFG_BRANCH_NAME, CFG_BRANCH_SELECTION_OPTIONS, CFG_PLAN_HAS_MULTIPLE_BRANCHES, CFG_TRIGGERING_PLAN, CFG_TRIGGERING_PLAN_MATCHES_DEPLOYMENT, DEPLOYMENT_PROJECT, ENVIRONMENT, ENVIRONMENT_ID, i18nResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateTriggerConfigMap(@NotNull ActionParametersMap actionParametersMap, @Nullable TriggerDefinition previousTriggerDefinition) booleanisAffectedByEnvironmentDeletion(@org.jetbrains.annotations.NotNull long environmentId, @NotNull TriggerDefinition triggerDefinition) Check if trigger will be affected when Environment is deleted.voidmodifyConfigurationByIdsReplacement(@NotNull TriggerDefinition triggerDefinition, @NotNull Map<String, String> oldAndClonedEnvironmentIds) Replace environments' ids according to provided mappingvoidpopulateContextForCreate(@NotNull Map<String, Object> context) voidpopulateContextForEdit(@NotNull Map<String, Object> context, @NotNull TriggerDefinition triggerDefinition) voidpopulateContextForView(@NotNull Map<String, Object> context, @NotNull TriggerDefinition triggerDefinition) voidvalidate(@NotNull ActionParametersMap actionParametersMap, @NotNull ErrorCollection errorCollection) Methods inherited from class com.atlassian.bamboo.trigger.environment.AbstractEnvironmentTriggerConfigurator
getBranchName, getRepositorySelectionMode, hasDeploymentProjectPlanMultipleBranches, hasTheSameMasterPlanAsDeploymentProject, populateContextWithBranchControlVariablesForDeployments, setCachedPlanManager, setCustomVariableContext, setI18nResolver, setUiConfigSupportMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
getRepositorySelectionMode, isRepositorySelectable
-
Field Details
-
CFG_TRIGGERING_ENVIRONMENT_ID
- See Also:
-
CFG_ENVIRONMENTS
- See Also:
-
CFG_DEPLOYMENT_ID
- See Also:
-
-
Constructor Details
-
AfterSuccessfulDeploymentTriggerConfigurator
public AfterSuccessfulDeploymentTriggerConfigurator()
-
-
Method Details
-
populateContextForCreate
- Specified by:
populateContextForCreatein interfaceTriggerConfigurator
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition) - Specified by:
populateContextForEditin interfaceTriggerConfigurator
-
populateContextForView
public void populateContextForView(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull TriggerDefinition triggerDefinition) - Specified by:
populateContextForViewin interfaceTriggerConfigurator
-
validate
public void validate(@NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull ErrorCollection errorCollection) - Specified by:
validatein interfaceTriggerConfigurator
-
generateTriggerConfigMap
@NotNull public @NotNull Map<String,String> generateTriggerConfigMap(@NotNull @NotNull ActionParametersMap actionParametersMap, @Nullable @Nullable TriggerDefinition previousTriggerDefinition) - Specified by:
generateTriggerConfigMapin interfaceTriggerConfigurator
-
isAffectedByEnvironmentDeletion
public boolean isAffectedByEnvironmentDeletion(@NotNull @org.jetbrains.annotations.NotNull long environmentId, @NotNull @NotNull TriggerDefinition triggerDefinition) Description copied from interface:EnvironmentAwareEnvironmentTriggerConfiguratorCheck if trigger will be affected when Environment is deleted.- Specified by:
isAffectedByEnvironmentDeletionin interfaceEnvironmentAwareEnvironmentTriggerConfigurator- Parameters:
environmentId- id of an Environment being deleted- Returns:
- true if action needs to be taken when Environment is deleted
-
modifyConfigurationByIdsReplacement
public void modifyConfigurationByIdsReplacement(@NotNull @NotNull TriggerDefinition triggerDefinition, @NotNull @NotNull Map<String, String> oldAndClonedEnvironmentIds) Description copied from interface:EnvironmentAwareEnvironmentTriggerConfiguratorReplace environments' ids according to provided mapping- Specified by:
modifyConfigurationByIdsReplacementin interfaceEnvironmentAwareEnvironmentTriggerConfigurator- Parameters:
triggerDefinition- of which configuration will be replacedoldAndClonedEnvironmentIds- mapping between old and new ids
-