public class Artifact extends EntityPropertiesBuilder<ArtifactProperties>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
HTTP_COMPRESSION_ON_BY_DEFAULT |
static boolean |
REQUIRED_BY_DEFAULT |
static boolean |
SHARED_BY_DEFAULT |
| Constructor and Description |
|---|
Artifact() |
Artifact(@NotNull String name)
Specify an artifact with given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected ArtifactProperties |
build() |
Artifact |
copyPattern(@NotNull String copyPattern)
Deprecated.
since 8.3, use
copyPatterns(String...) |
Artifact |
copyPatterns(String... copyPatterns)
Specify the pattern according to which Bamboo should copy files when creating an actual artifact.
|
Artifact |
exclusionPatterns(String... exclusionPatterns)
Specify the pattern according to which Bamboo should exclude files when creating an actual artifact.
|
@NotNull String |
getName()
Returns defined artifact name, which serves as identifier for this object.
|
Artifact |
httpCompressionOn(boolean httpCompressionOn)
Specifies if artifact should be compressed before transfer.
|
Artifact |
location(@NotNull String location)
Specifies a path in which Bamboo should look for the files when creating an actual artifact.
|
Artifact |
name(@NotNull String name)
Sets an artifact name.
|
Artifact |
required()
Set artifact to be required.
|
Artifact |
required(boolean mandatory)
Specifies if artifact is required.
|
Artifact |
shared(boolean shared)
Specifies if artifact is shared.
|
public static final boolean SHARED_BY_DEFAULT
public static final boolean REQUIRED_BY_DEFAULT
public static final boolean HTTP_COMPRESSION_ON_BY_DEFAULT
public Artifact()
public Artifact(@NotNull
@NotNull String name)
throws PropertiesValidationException
In the absence of oid, the name is used to identify the artifact. If the artifact with given name does not exist, a new one is created, otherwise existing one is updated.
PropertiesValidationExceptionpublic Artifact name(@NotNull @NotNull String name) throws PropertiesValidationException
In the absence of oid, the name is used to identify the artifact. If the artifact with given name does not exist, a new one is created, otherwise existing one is updated.
PropertiesValidationException@Deprecated public Artifact copyPattern(@NotNull @NotNull String copyPattern) throws PropertiesValidationException
copyPatterns(String...)copyPattern - a copy pattern in Ant file pattern formatPropertiesValidationExceptionpublic Artifact copyPatterns(@NotNull String... copyPatterns) throws PropertiesValidationException
copyPatterns - a set of copy patterns in Ant file pattern formatPropertiesValidationExceptionpublic Artifact exclusionPatterns(@NotNull String... exclusionPatterns) throws PropertiesValidationException
exclusionPatterns - a set of exclusion patterns in Ant file pattern formatPropertiesValidationExceptionpublic Artifact shared(boolean shared)
public Artifact required()
public Artifact required(boolean mandatory)
public Artifact httpCompressionOn(boolean httpCompressionOn)
public Artifact location(@NotNull @NotNull String location) throws PropertiesValidationException
PropertiesValidationException@NotNull public @NotNull String getName()
IllegalStateException - if name is undefinedprotected ArtifactProperties build() throws PropertiesValidationException
build in class EntityPropertiesBuilder<ArtifactProperties>PropertiesValidationExceptionCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.