public class Artifact extends EntityPropertiesBuilder<ArtifactProperties>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
REQUIRED_BY_DEFAULT |
static boolean |
SHARED_BY_DEFAULT |
| Constructor and Description |
|---|
Artifact() |
Artifact(String name)
Specify an artifact with given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected ArtifactProperties |
build() |
Artifact |
copyPattern(String copyPattern)
Specify the pattern according to which Bamboo should copy files when creating an actual artifact.
|
String |
getName()
Returns defined artifact name, which serves as identifier for this object.
|
Artifact |
location(String location)
Specifies a path in which Bamboo should look for the files when creating an actual artifact.
|
Artifact |
name(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 Artifact()
public Artifact(@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 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 copyPattern(@NotNull String copyPattern) throws PropertiesValidationException
copyPattern - a copy pattern in Ant copy pattern formatPropertiesValidationExceptionpublic Artifact shared(boolean shared)
public Artifact required()
public Artifact required(boolean mandatory)
public Artifact location(@NotNull String location) throws PropertiesValidationException
PropertiesValidationException@NotNull public String getName()
IllegalStateException - if name is undefinedprotected ArtifactProperties build() throws PropertiesValidationException
build in class EntityPropertiesBuilder<ArtifactProperties>PropertiesValidationExceptionCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.