CloudBees action: Store an object on Amazon S3

1 minute read

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

Table 1. Input details
Input name Data type Required? Description

bucket-name

String

Yes

The Amazon S3 bucket name.

file-path

String

Yes

The local file path of the directory to be uploaded.

s3-path

String

Yes

The Amazon S3 destination path for the upload.

artifact-name

String

No

The name of the artifact to send to the CloudBees platform.

artifact-version

String

No

The version of the artifact to send to the CloudBees platform.

send-artifact-info

String

No

Enable the sending of artifact information to the CloudBees platform.

Usage example

In your YAML file, add:

- name: Upload to Amazon S3 uses: cloudbees-io/s3-upload-object@v1 with: bucket-name: "Amazon_S3_bucket_name" file-path: "/local-image.tar" s3-path: "amazon-s3-image.tar"