public interface BuildCustomizer
BuildCustomizerFactory| Modifier and Type | Method and Description |
|---|---|
BuildPromotion |
createPromotion()
Creates build promotion with all custom settings.
|
SBuildType |
getBuildType() |
SUser |
getCurrentUser() |
void |
setArtifactDependencies(java.util.List<SArtifactDependency> customDependencies)
Sets custom artifact dependencies to the build.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets custom attributes to the build
|
void |
setBuildComment(java.lang.String buildComment)
Sets comment to the build.
|
void |
setChangesUpTo(SVcsModification modification)
Specifies the last change to include in this build.
|
void |
setCleanSources(boolean cleanSources)
If cleanSources is true the build will re-checkout all the sources on agent (note: this setting does not affect snapshot dependencies anyhow).
|
void |
setDesiredBranchName(java.lang.String branchName)
Sets the desired branch name for the build promotion (will be propagated to the whole snapshot dependency graph).
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> customParams)
Sets custom parameters to the build, custom parameters will overwrite default parameters inherited from build configuration.
|
void |
setPersonal(boolean personal)
If personal is true the personal build will be created with owner set to user who performs the action.
|
void |
setPersonalChangeId(long changeId)
Sets id of a personal patch should be associated with the personal build.
|
void |
setRebuildDependencies(boolean rebuild)
Sets whether all snapshot dependencies must be rebuild or not.
|
void |
setRebuildDependencies(java.util.Collection<java.lang.String> buildTypeIds)
Specifies collection of build configurations where builds cannot be reused.
|
void |
setSnapshotDependencyNodes(java.util.Collection<BuildPromotion> promotions)
Sets custom nodes for the snapshot dependency graph.
|
void |
setTagDatas(java.util.Set<TagData> tags)
Sets build tags
|
@NotNull SBuildType getBuildType()
@Nullable SUser getCurrentUser()
void setParameters(@NotNull
java.util.Map<java.lang.String,java.lang.String> customParams)
customParams - custom parameters mapvoid setAttributes(@NotNull
java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - custom attributes mapvoid setRebuildDependencies(boolean rebuild)
DependencyOptions.TAKE_STARTED_BUILD_WITH_SAME_REVISIONS to false for all snapshot dependencies.rebuild - true to rebuild all dependenciesvoid setRebuildDependencies(@NotNull
java.util.Collection<java.lang.String> buildTypeIds)
setRebuildDependencies(boolean) but works for a specific set of nodes.
Note that setRebuildDependencies(boolean) (true) has higher priority.buildTypeIds - ids of build configurations where builds reusing is disabledvoid setBuildComment(@NotNull
java.lang.String buildComment)
buildComment - comment to setvoid setChangesUpTo(@NotNull
SVcsModification modification)
modification - the last change to include in the buildvoid setPersonal(boolean personal)
personal - true for personal build, false otherwisevoid setPersonalChangeId(long changeId)
changeId - personal patch idvoid setArtifactDependencies(@NotNull
java.util.List<SArtifactDependency> customDependencies)
customDependencies - collection of custom artifact dependenciesvoid setSnapshotDependencyNodes(@NotNull
java.util.Collection<BuildPromotion> promotions)
promotions - nodes to insert in the snapshot dependency graphvoid setCleanSources(boolean cleanSources)
cleanSources - true to re-checkout sources on agent.void setDesiredBranchName(@NotNull
java.lang.String branchName)
branchName - the branch name - empty string or display name of the default branch means default branch@NotNull BuildPromotion createPromotion()
java.lang.RuntimeException - if some problem occurredvoid setTagDatas(@NotNull
java.util.Set<TagData> tags)