Last active
July 7, 2018 17:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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