public class VcsCommitTaskExporter extends AbstractVcsTaskExporter
vcsRepositoryManager
repositoryDefinitionManager
Constructor and Description |
---|
VcsCommitTaskExporter(RepositoryDefinitionManager repositoryDefinitionManager,
VcsRepositoryManager vcsRepositoryManager) |
Modifier and Type | Method and Description |
---|---|
protected com.atlassian.bamboo.specs.api.validators.common.ValidationContext |
getValidationContext()
Get validation context for this task type.
|
protected boolean |
isRepositoryTypeSupported(VcsRepositoryModuleDescriptor moduleDescriptor)
Returns true if the given repository type is supported by this task type.
|
com.atlassian.bamboo.specs.builders.task.VcsCommitTask |
toSpecsEntity(TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
Map<String,String> |
toTaskConfiguration(TaskContainer taskContainer,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Converts properties to Bamboo task configuration.
|
List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validate(TaskValidationContext taskValidationContext,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Validates task properties in context of enclosing plan or deployment properties.
|
baseVcsTaskToConfiguration, baseVcsTaskToSpecsEntity, baseVcsTaskValidate, getTypedTaskProperties, isDefaultRepositoryRef
getNonDefaultRepositoryRef, getNonDefaultRepositoryRef, getRepositoryIdString, getRepositoryListForTaskContainer, isDefaultRepositoryRef
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromYaml, toSpecsEntity, toTaskConfiguration, toTaskConfiguration, toYaml
@Inject public VcsCommitTaskExporter(@NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull VcsRepositoryManager vcsRepositoryManager)
@NotNull protected com.atlassian.bamboo.specs.api.validators.common.ValidationContext getValidationContext()
AbstractVcsTaskExporter
getValidationContext
in class AbstractVcsTaskExporter
protected boolean isRepositoryTypeSupported(@NotNull VcsRepositoryModuleDescriptor moduleDescriptor)
AbstractVcsTaskExporter
isRepositoryTypeSupported
in class AbstractVcsTaskExporter
@NotNull public Map<String,String> toTaskConfiguration(@NotNull TaskContainer taskContainer, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
TaskDefinitionExporter
taskContainer
- current task container (a job or an environment for instance)taskProperties
- the current task@NotNull public com.atlassian.bamboo.specs.builders.task.VcsCommitTask toSpecsEntity(@NotNull TaskDefinition taskDefinition)
TaskDefinitionExporter
@NotNull public List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull TaskValidationContext taskValidationContext, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
TaskDefinitionExporter
Should check RSS permissions if necessary.
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.