Skip to content

Instantly share code, notes, and snippets.

@mh0w
Last active February 2, 2026 19:00
Show Gist options
  • Select an option

  • Save mh0w/0c81a075ceee244d7d112b4ab47050d6 to your computer and use it in GitHub Desktop.

Select an option

Save mh0w/0c81a075ceee244d7d112b4ab47050d6 to your computer and use it in GitHub Desktop.
Uploading and downloading between local and Artifactory using either `curl` or jfrog `jf.exe` CLI
###
# CURL approach
###
ARTIFACTORY_BASE_URL="https://artyyy-01/artifactory"
ARTIFACTORY_REPO_PATH="LR_DataEng_pypi/cdsw_remote"
version="0.1.4a9"
curl -f -u "$JF_USER:$JF_PASSWORD" -T "dist/cdsw_remote-$version.exe" \
"$ARTIFACTORY_BASE_URL/$ARTIFACTORY_REPO_PATH/cdsw_remote-$version.exe"
curl -f -u "$JF_USER:$JF_PASSWORD" -T "dist/cdsw_remote-$version-py3-none-any.whl" \
"$ARTIFACTORY_BASE_URL/$ARTIFACTORY_REPO_PATH/cdsw_remote-$version-py3-none-any.whl"
###
# jf.exe approach
###
# Make sure set environment variables [example values in brackets]:
# JF_URL [https://internalurl or https://external-art-url.example.com]
# AND EITHER
# (a) user and password
# JF_USER [my-user-name]
# JF_PASSWORD [MySuperSecretPassword]
# (b)
# JF_ACCESS_TOKEN [my.access-t0ken]
# May also need to download the artifactory certificate to $home/.jfrog/security/certs
# Enable use of environment variables
set CI=true
# Download all 'LR_DataEng_pypi/plumb_etl/*' files from artifactory
"C:\Users\hawkem\Downloads\jf.exe" rt download 'LR_DataEng_pypi/plumb_etl/*' 'C:\Users\hawkem\Downloads\'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment