Skip to content

Instantly share code, notes, and snippets.

@uilian
Created June 25, 2021 21:41
Show Gist options
  • Save uilian/8847d2377bd4b1924cd77f58d198e5b9 to your computer and use it in GitHub Desktop.
Save uilian/8847d2377bd4b1924cd77f58d198e5b9 to your computer and use it in GitHub Desktop.
Getting latest package from Artifactory
# https://blog.mimacom.com/artifactory-latest-version/
curl -s $(curl -s $(curl -s "$ARTIFACTORY_URL/$REPO_URL?lastModified" | jq -r '.uri') | jq -r '.downloadUri' )
# with basic auth and defining output directory
curl -u$ARTIFACTORY_USER:$ARTIFACTORY_TOKEN -O --output /tmp -s ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment