This Pipelines Task installs and sets up JFrog CLI.
Prerequisites
None
Usage
Basic:
- task: jfrog/setup-jfrog-cli@v0.1.0 input: version: "2.26.1"
You can use an Artifactory integration or JFrog Platform Access Token and local generic repository to cache the JFrog CLI binary. The first run of the task will download the binary from the internet and upload it to Artifactory. Following runs will download the binary from Artifactory instead.
- task: jfrog/setup-jfrog-cli@v0.1.0 input: version: "2.26.1" cacheIntegration: "my_artifactory" cacheRepository: "pipelines_cache_local"
Input Variables
Name | Required | Default | Description |
---|---|---|---|
version | true | JFrog CLI version to be installed | |
cacheIntegration | false | Any Artifactory integration or JFrog Platform Access Token integration available | JFrog Platform Access Token integration or Artifactory integration to be used to cache the binary |
cacheRepository | false | Artifactory repository to be used to cache the binary |
Output Variables
None
Exported Environment Variables
Name | Description |
---|---|
PATH | Append JFrog CLI folder |
How does it work?
To install JFrog CLI, the task performs the following steps:Downloads the CLI binary from the official sourceUploads binary to Artifactory if cache is enabled (Following runs will download from Artifactory) Add CLI binary folder to PATHRun jfrog -v to log the installed version
Downloads the CLI binary from the official source
Uploads binary to Artifactory if cache is enabled (Following runs will download from Artifactory)
Add CLI binary folder to PATH
Run
jfrog -v
to log the installed version
License
This project is licensed under Apache 2.0 license.