|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.build.strategy.AbstractBuildStrategy
com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
com.atlassian.bamboo.build.strategy.CronTriggerBuildStrategy
public class CronTriggerBuildStrategy
Build strategy specified by a cron expression
Field Summary | |
---|---|
static java.lang.String |
CFG_BRANCH_SELECTION_MODE
|
static java.lang.String |
CFG_DEPLOYMENTS_MODE
|
static java.lang.String |
CFG_SOURCE_BRANCH
|
static java.lang.String |
CFG_SOURCE_PLAN
|
static java.lang.String |
KEY
|
Fields inherited from class com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy |
---|
scheduler |
Fields inherited from interface com.atlassian.bamboo.build.strategy.QuartzStrategy |
---|
BUILD_STRATEGY, REPOSITORY_CHANGE_JOB, TRIGGER_CONDITIONS_CONFIGURATION, TRIGGER_ID, TRIGGERED_OBJECT_ID, TRIGGERING_REPOSITORIES |
Constructor Summary | |
---|---|
CronTriggerBuildStrategy()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
|
protected org.quartz.JobDetail |
createJobDetail(Triggerable triggerable,
java.lang.String jobName)
|
DeploymentTriggerBranchSelectionMode |
getBranchSelectionMode()
|
java.lang.String |
getCronExpression()
|
java.lang.String |
getDescription()
|
java.lang.String |
getKey()
A lowercase string key to identify the build strategy |
java.lang.String |
getName()
Returns the display name of the strategy type. |
PlanKey |
getSourceBranch()
|
PlanKey |
getSourcePlan()
|
PlanKey |
getSourcePlanKey(Triggerable triggerable)
|
protected java.lang.Class<? extends org.quartz.Job> |
getStrategyJob()
|
protected org.quartz.Trigger |
getTrigger(Triggerable plan)
|
java.lang.String |
getTriggerDetailsSummaryHtml(Triggerable triggerable,
com.atlassian.core.i18n.I18nTextProvider i18nTextProvider)
|
boolean |
isAffectedByPlanDeletion(PlanKey deletedPlanKey)
Check if strategy will be affected when Plan is deleted. |
boolean |
isAffectedByPlanKeyUpdate(PlanKey originalPlanKey)
Check if strategy will be affected when Plan's key will change |
void |
onDeploymentProjectPlanUpdate(ImmutableChain oldPlan,
ImmutableChain newPlan)
|
void |
populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
This method might be used in priority upgrade tasks so it should not use cachedPlanManager |
void |
setBranchSelectionMode(DeploymentTriggerBranchSelectionMode branchSelectionMode)
|
void |
setCachedPlanManager(CachedPlanManager cachedPlanManager)
|
void |
setCronExpression(java.lang.String cronExpression)
|
void |
setEnvironmentTriggerService(EnvironmentTriggerService environmentTriggerService)
|
void |
setSourceBranch(PlanKey sourceBranch)
|
void |
setSourcePlan(PlanKey sourcePlan)
|
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
|
void |
setTextProvider(com.atlassian.struts.TextProvider textProvider)
|
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a HierarchicalConfiguration from the current state of the object |
void |
updatePlanKey(PlanKey originalPlanKey,
PlanKey newPlanKey)
Perform actual update of internal strategy state |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Takes in a BuildConfiguration and returns any errors possible |
void |
validateDeploymentProjectPlanUpdate(ImmutableChain oldPlan,
ImmutableChain newPlan,
Environment environment,
java.util.List<EnvironmentTriggerValidationError> triggerValidationErrors)
|
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy |
---|
canTrigger, getScheduler, getUniqueId, init, initialiseJob, removeJob, setScheduler |
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy |
---|
getBuildStrategyManager, getId, getTextProvider, getTriggerConditionsConfiguration, getUserDescription, setId, setUserDescription |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategy |
---|
canTrigger, getTriggerConditionsConfiguration, getUserDescription, init, setId, setUserDescription |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Field Detail |
---|
public static final java.lang.String KEY
public static final java.lang.String CFG_DEPLOYMENTS_MODE
public static final java.lang.String CFG_BRANCH_SELECTION_MODE
public static final java.lang.String CFG_SOURCE_PLAN
public static final java.lang.String CFG_SOURCE_BRANCH
Constructor Detail |
---|
public CronTriggerBuildStrategy()
Method Detail |
---|
public java.lang.String getKey()
BuildStrategy
getKey
in interface BuildStrategy
public java.lang.String getName()
BuildStrategy
getName
in interface BuildStrategy
public java.lang.String getDescription()
getDescription
in interface BuildStrategy
getDescription
in class AbstractBuildStrategy
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the object
toConfiguration
in interface ConvertibleFromConfig
toConfiguration
in class AbstractBuildStrategy
HierarchicalConfiguration
. Never nullpublic void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
populateFromConfig
in interface ConvertibleFromConfig
populateFromConfig
in class AbstractBuildStrategy
public void addDefaultValues(BuildConfiguration buildConfiguration)
addDefaultValues
in interface BuildStrategy
addDefaultValues
in class AbstractBuildStrategy
public ErrorCollection validate(BuildConfiguration buildConfiguration)
BuildStrategy
BuildConfiguration
and returns any errors possible
validate
in interface BuildStrategy
validate
in class AbstractBuildStrategy
buildConfiguration
- not null
ErrorCollection
. must not be null@NotNull protected java.lang.Class<? extends org.quartz.Job> getStrategyJob()
getStrategyJob
in class AbstractQuartzStrategy
@Nullable protected org.quartz.Trigger getTrigger(@NotNull Triggerable plan)
getTrigger
in class AbstractQuartzStrategy
protected org.quartz.JobDetail createJobDetail(@NotNull Triggerable triggerable, @NotNull java.lang.String jobName)
createJobDetail
in class AbstractQuartzStrategy
public boolean isAffectedByPlanKeyUpdate(@NotNull PlanKey originalPlanKey)
PlanKeyUpdateAwareBuildStrategy
isAffectedByPlanKeyUpdate
in interface PlanKeyUpdateAwareBuildStrategy
originalPlanKey
- Plan key that is about to be changed
public void updatePlanKey(@NotNull PlanKey originalPlanKey, @NotNull PlanKey newPlanKey)
PlanKeyUpdateAwareBuildStrategy
updatePlanKey
in interface PlanKeyUpdateAwareBuildStrategy
originalPlanKey
- original value of plan keynewPlanKey
- new value of plan keypublic boolean isAffectedByPlanDeletion(@NotNull PlanKey deletedPlanKey)
PlanDeletionAwareBuildStrategy
isAffectedByPlanDeletion
in interface PlanDeletionAwareBuildStrategy
deletedPlanKey
- key of Plan that was deleted
@NotNull public java.lang.String getTriggerDetailsSummaryHtml(@NotNull Triggerable triggerable, @NotNull com.atlassian.core.i18n.I18nTextProvider i18nTextProvider)
getTriggerDetailsSummaryHtml
in interface BuildStrategy
getTriggerDetailsSummaryHtml
in class AbstractBuildStrategy
@NotNull public DeploymentTriggerBranchSelectionMode getBranchSelectionMode()
getBranchSelectionMode
in interface DeploymentTriggerBranchSelectionModeAwareBuildStrategy
@Nullable public PlanKey getSourcePlanKey(@NotNull Triggerable triggerable)
getSourcePlanKey
in interface SourcePlanAwareBuildStrategy
public void validateDeploymentProjectPlanUpdate(@Nullable ImmutableChain oldPlan, @NotNull ImmutableChain newPlan, @NotNull Environment environment, @NotNull java.util.List<EnvironmentTriggerValidationError> triggerValidationErrors)
validateDeploymentProjectPlanUpdate
in interface DeploymentProjectPlanUpdateAwareBuildStrategy
public void onDeploymentProjectPlanUpdate(@Nullable ImmutableChain oldPlan, @NotNull ImmutableChain newPlan)
onDeploymentProjectPlanUpdate
in interface DeploymentProjectPlanUpdateAwareBuildStrategy
public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
public void setEnvironmentTriggerService(EnvironmentTriggerService environmentTriggerService)
public void setTextProvider(com.atlassian.struts.TextProvider textProvider)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public java.lang.String getCronExpression()
public void setCronExpression(java.lang.String cronExpression)
public void setBranchSelectionMode(DeploymentTriggerBranchSelectionMode branchSelectionMode)
public PlanKey getSourceBranch()
public void setSourceBranch(PlanKey sourceBranch)
public PlanKey getSourcePlan()
public void setSourcePlan(PlanKey sourcePlan)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |