CloudBees action: Upload a file to JFrog Artifactory

1 minute read

Use this action to upload a file to the JFrog Artifactory repository manager. 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

url

String

Yes

The JFrog Artifactory server URL.

token

String

Required only if username and password are not specified.

The JFrog Artifactory token.

username

String

Required only if token is not specified.

The JFrog Artifactory username.

password

String

Required only if token is not specified.

The JFrog Artifactory password.

file-path

String

Yes

The path of the file to be uploaded.

artifactory-path

String

Yes

The JFrog Artifactory destination path for the upload.

send-artifact-info

Boolean

No

Enable to send artifact information to the Cloudbees Platform for artifact traceability purposes. Default value is false.

artifact-name

String

No

The name of the artifact to send to the Cloudbees Platform for artifact traceability purposes.

artifact-version

String

No

The version of the artifact to send to the Cloudbees Platform for artifact traceability purposes.

Usage example

In your YAML file, add:

- name: Upload file from JFrog Artifactory uses: cloudbees-io/jfrog-artifactory-upload-file@v1 with: url: ${{ JFROG_URL }} username: ${{ secrets.JFROG_USERNAME }} password: ${{ secrets.JFROG_PASSWORD }} token: '' file-path: "/local-path" artifactory-path: "test-image.tar"