Use this action to upload an object file to Amazon Simple Storage Service (Amazon S3). This action also reports artifact-related data to the workflow run for artifact traceability purposes.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The Amazon S3 bucket name. |
|
String |
Yes |
The local file path of the directory to be uploaded. |
|
String |
Yes |
The Amazon S3 destination path for the upload. |
|
String |
No |
The name of the artifact to send to the CloudBees platform. Defaults to the filename if not provided. |
|
String |
No |
The version of the artifact to send to the CloudBees platform.
Defaults to |
|
Boolean |
No |
If |
Outputs
Output name | Data type | Description |
---|---|---|
|
String |
The unique identifier of the artifact reported to the CloudBees platform. |
Usage examples
Basic example
The following is a basic example of using the action:
- name: Upload to Amazon S3 uses: cloudbees-io/s3-upload-object@v1 with: bucket-name: amazon-s3-bucket-name file-path: my-local/my-image.tar s3-path: my-amazon-s3/s3-image.tar