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, removeBuildRequirementsaddDefaultValues, getEditHtml, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRendererclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefaultValues, prepareConfigObjectinitgetEditHtml, getViewHtmlpublic 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 BuildTaskcall 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 BuildConfigurationAwarePluginvalidate in class BaseBuildConfigurationAwarePluginbuildConfiguration - Build configuration objectpublic boolean isConfigurationMissing(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration configuration)
BuildConfigurationAwarePluginisConfigurationMissing in interface BuildConfigurationAwarePluginconfiguration - 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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.