public class BuildLabeller extends BaseConfigurablePlugin implements CustomPostBuildCompletedAction, ImportExportAwarePlugin
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()
Return all property keys related to this plugin module which may exist in a plan's
BuildConfiguration . |
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 |
setCustomVariableContext(CustomVariableContext customVariableContext) |
void |
setLabelManager(LabelManager labelManager) |
void |
setPlanManager(PlanManager planManager) |
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, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toSerializableMap
addDefaultValues, prepareConfigObject
init
getEditHtml, getViewHtml
public void init(@NotNull BuildContext buildContext)
@NotNull public BuildContext call() throws InterruptedException, 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 object@NotNull public Set<String> getConfigurationKeys()
ImportExportAwarePlugin
BuildConfiguration
.
The returned set may be immutable. If a plugin module doesn't have configuration, then an empty set should be
returned.getConfigurationKeys
in interface ImportExportAwarePlugin
public 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 setPlanManager(PlanManager planManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.