public class BuildLabeller extends BaseConfigurablePlugin implements CustomPostBuildCompletedAction
moduleDescriptor, templateRenderer
Constructor and Description |
---|
BuildLabeller() |
Modifier and Type | Method and Description |
---|---|
BuildContext |
call()
This action will run after a build has completed.
|
protected BuildLogFileAccessor |
getBuildLogFileAccessor(Key planKey,
int buildNumber) |
Set<String> |
getConfigurationKeys() |
LabelManager |
getLabelManager() |
void |
init(BuildContext buildContext) |
boolean |
isConfigurationMissing(org.apache.commons.configuration.HierarchicalConfiguration configuration)
Checks if HierarchicalConfiguration objects contains plugin's configuration values.
|
void |
setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory) |
void |
setCachedPlanManager(CachedPlanManager cachedPlanManager) |
void |
setCustomVariableContext(CustomVariableContext customVariableContext) |
void |
setLabelManager(LabelManager labelManager) |
void |
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager) |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
This method is used to validate a build configuration for a build plan
|
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDefaultValues, prepareConfigObject
init
getEditHtml, getViewHtml
public void init(@NotNull BuildContext buildContext)
@NotNull public BuildContext call() throws Exception
The build will be tagged with a specified set of labels if the logs matches the specified regex pattern.
call
in interface BuildTask
call
in interface Callable<BuildContext>
InterruptedException
- if the calling Thread
has been interrupted.Exception
- A general exception that will be handled.@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
This is used if the CustomBuildCompleteAction needs to have configuration stored against the build plan.
validate
in interface BuildConfigurationAwarePlugin
validate
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- Build configuration objectpublic boolean isConfigurationMissing(@NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
BuildConfigurationAwarePlugin
isConfigurationMissing
in interface BuildConfigurationAwarePlugin
configuration
- HierarchicalConfiguration objectpublic LabelManager getLabelManager()
public void setLabelManager(LabelManager labelManager)
protected BuildLogFileAccessor getBuildLogFileAccessor(Key planKey, int buildNumber)
public void setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.