Package hudson.plugins.s3
Class Destination
- java.lang.Object
-
- hudson.plugins.s3.Destination
-
- All Implemented Interfaces:
Serializable
public class Destination extends Object implements Serializable
Provides a way to construct a destination bucket name and object name based on the bucket name provided by the user. The convention implemented here is that a / in a bucket name is used to construct a structure in the object name. That is, a put of file.txt to bucket name of "mybucket/v1" will cause the object "v1/file.txt" to be created in the mybucket.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
bucketName
String
objectName
-
Constructor Summary
Constructors Constructor Description Destination(String userBucketName, String fileName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Destination
newFromRun(Run run, S3Artifact artifact)
static Destination
newFromRun(Run run, String bucketName, String fileName, boolean enableFullpath)
String
toString()
-
-
-
Method Detail
-
newFromRun
public static Destination newFromRun(Run run, String bucketName, String fileName, boolean enableFullpath)
-
newFromRun
public static Destination newFromRun(Run run, S3Artifact artifact)
-
-