@Entity public class ArtifactDefinitionImpl extends HibernateBambooEntityWithOid implements ArtifactDefinition
| Constructor and Description |
|---|
ArtifactDefinitionImpl() |
ArtifactDefinitionImpl(ArtifactDefinition sourceArtifact,
Job newProducerJob,
boolean sharedArtifact,
boolean required)
Constructor used for cloning artifact definitions while a job is being cloned.
|
ArtifactDefinitionImpl(Job producerJob,
String name,
String location,
String copyPattern)
Create a build artifact identified in the UI by the label.
|
ArtifactDefinitionImpl(String name,
String location,
String copyPattern)
Create a build artifact identified in the UI by the label.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getCopyPattern()
Get artifact copy pattern
|
String |
getLocation()
Get artifact location
|
@NotNull String |
getName()
Get artifact name
|
@NotNull Job |
getProducerJob()
Get Buildable that is a producer of artifact
|
@NotNull List<ArtifactSubscription> |
getSubscriptions()
Get List of ArtifactSubscriptions on this ArtifactDefinition.
|
boolean |
hasSubscriptions() |
boolean |
isRequired() |
boolean |
isSharedArtifact()
Get value of "SharedArtifact" flag.
|
void |
setCopyPattern(@NotNull String copyPattern)
Set copy pattern
|
void |
setLocation(@Nullable String location)
Set artifact location
|
void |
setName(@NotNull String name)
Set label
|
void |
setProducerJob(@NotNull Job producerJob)
Set Buildable that is a producer of artifact
|
void |
setRequired(boolean requiredArtifact) |
void |
setSharedArtifact(boolean sharedArtifact)
Set "SharedArtifact" flag
|
void |
setSubscriptions(@NotNull List<ArtifactSubscription> subscriptions)
Set subscriptions on this artifact definition.
|
getId, getOid, setId, setOidclone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityType, getIdgetOidsetIdsetOidpublic ArtifactDefinitionImpl()
public ArtifactDefinitionImpl(String name, String location, String copyPattern)
name - The UI text labellocation - Directory to which copy pattern appliescopyPattern - The ANT style copy pattern, relative to the source code directorypublic ArtifactDefinitionImpl(Job producerJob, String name, String location, String copyPattern)
producerJob - producer jobname - The UI text labellocation - Directory to which copy pattern appliescopyPattern - The ANT style copy pattern, relative to the source code directorypublic ArtifactDefinitionImpl(ArtifactDefinition sourceArtifact, Job newProducerJob, boolean sharedArtifact, boolean required)
sourceArtifact - artifact definition to be copiednewProducerJob - job that will produce artifacts according to the cloned definition@NotNull public @NotNull String getCopyPattern()
ImmutableArtifactDefinitionBasegetCopyPattern in interface ImmutableArtifactDefinitionBasepublic void setCopyPattern(@NotNull
@NotNull String copyPattern)
ArtifactDefinitionBasesetCopyPattern in interface ArtifactDefinitionBasecopyPattern - new value of copy pattern@NotNull public @NotNull String getName()
ImmutableArtifactDefinitionBasegetName in interface ImmutableArtifactDefinitionBasegetName in interface NameProviderpublic void setName(@NotNull
@NotNull String name)
ArtifactDefinitionBasesetName in interface ArtifactDefinitionBasename - new value of labelpublic String getLocation()
ImmutableArtifactDefinitionBasegetLocation in interface ImmutableArtifactDefinitionBasepublic void setLocation(@Nullable
@Nullable String location)
ArtifactDefinitionBasesetLocation in interface ArtifactDefinitionBaselocation - new artifact locationpublic boolean isSharedArtifact()
ImmutableArtifactDefinitionBaseisSharedArtifact in interface ImmutableArtifactDefinitionBasepublic void setSharedArtifact(boolean sharedArtifact)
ArtifactDefinitionBasesetSharedArtifact in interface ArtifactDefinitionBasesharedArtifact - new value of "SharedArtifact" flagpublic boolean isRequired()
isRequired in interface ImmutableArtifactDefinitionBasepublic void setRequired(boolean requiredArtifact)
setRequired in interface ArtifactDefinitionBaserequiredArtifact - if build should fail if can't publish artifact@NotNull public @NotNull Job getProducerJob()
ArtifactDefinitiongetProducerJob in interface ArtifactDefinitiongetProducerJob in interface ImmutableArtifactDefinitionJob objectpublic void setProducerJob(@NotNull
@NotNull Job producerJob)
ArtifactDefinitionsetProducerJob in interface ArtifactDefinitionproducerJob - new value of producer job@NotNull public @NotNull List<ArtifactSubscription> getSubscriptions()
ArtifactDefinitiongetSubscriptions in interface ArtifactDefinitiongetSubscriptions in interface ImmutableArtifactDefinitionArtifactSubscription objectspublic boolean hasSubscriptions()
hasSubscriptions in interface ImmutableArtifactDefinitionpublic void setSubscriptions(@NotNull
@NotNull List<ArtifactSubscription> subscriptions)
ArtifactDefinitionsetSubscriptions in interface ArtifactDefinitionsubscriptions - non null list of ArtifactSubscription objectsCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.