Skip to content

Instantly share code, notes, and snippets.

@kumbasar
Last active July 7, 2018 17:54
Show Gist options
  • Save kumbasar/e5f36bdd347c318af60210101cfeb464 to your computer and use it in GitHub Desktop.
Save kumbasar/e5f36bdd347c318af60210101cfeb464 to your computer and use it in GitHub Desktop.
This script finds all the Artifactory builds which were modified 1 day ago
#!/bin/bash
checkdate=`date --date "yesterday 00:00" +%s000`
curl -u ${ARTIFACTORY_USER}:${ARTIFACTORY_PASSWORD} --silent --request GET "${ARTIFACTORY_URL}/artifactory/api/search/dates?dateFields=lastModified&from=${checkdate}&repos=${REPOS}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment