Use this action to upload an object file to Amazon Simple Storage Service (Amazon S3).
Automatic artifact data reporting
This action reports artifact-related data to the workflow run for artifact traceability purposes.
Do not include the CloudBees action: Register a build artifact for the same artifact version, as the resulting run would register duplicate artifact entries to CloudBees platform.
You must specify send-artifact-info: true in order to send artifact data to CloudBees platform.
| 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 CloudBees platform. Defaults to the filename if not provided. | 
| 
 | String | No | The version of the artifact to send to CloudBees platform.
Defaults to  | 
| 
 | Boolean | No | If  | 
| 
 | String | No | The commit ID from the source repository, used when registering the build artifact in CloudBees platform.
Default is  | 
| 
 | String | No | The ref or branch of the source repository, used when registering the build artifact in CloudBees platform.
Default is  | 
| 
 | String | No | The clone URL of the source repository, used when registering the build artifact in CloudBees platform.
Default is  | 
Outputs
| Output name | Data type | Description | 
|---|---|---|
| 
 | String | The unique identifier of the artifact reported to 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