public class BambooArtifactHttpTransport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HEADER_AUTHENTICATION_TOKEN |
static String |
HEADER_CONTENT_DESCRIPTION |
static String |
PLAN_RESULT_KEY |
Constructor and Description |
---|
BambooArtifactHttpTransport(AgentContext agentContext) |
Modifier and Type | Method and Description |
---|---|
static ArtifactDefinitionContext |
artifactDefinitionfromJson(String artifactJson) |
static Artifact |
artifactFromJson(Reader artifactJson) |
ArtifactHandlerPublishingResult |
publish(org.apache.tools.ant.types.FileSet sourceFileSet,
PlanResultKey planResultKey,
ArtifactDefinitionContext artifact,
String artifactDescription) |
ArtifactRetrievalStatus |
retrieve(Artifact artifact,
Path destinationPath,
SecureToken authenticationToken,
Function<ArtifactUnpackResult,ArtifactRetrievalStatus> successFactory) |
static String |
toJson(Artifact artifact) |
static String |
toJson(ArtifactDefinitionContext artifact) |
public static final String HEADER_CONTENT_DESCRIPTION
public static final String PLAN_RESULT_KEY
public static final String HEADER_AUTHENTICATION_TOKEN
public BambooArtifactHttpTransport(@NotNull AgentContext agentContext)
public ArtifactHandlerPublishingResult publish(@NotNull org.apache.tools.ant.types.FileSet sourceFileSet, PlanResultKey planResultKey, ArtifactDefinitionContext artifact, String artifactDescription)
public ArtifactRetrievalStatus retrieve(Artifact artifact, Path destinationPath, SecureToken authenticationToken, Function<ArtifactUnpackResult,ArtifactRetrievalStatus> successFactory)
public static String toJson(ArtifactDefinitionContext artifact)
public static ArtifactDefinitionContext artifactDefinitionfromJson(String artifactJson)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.