Created
April 9, 2016 05:20
-
-
Save ttddyy/cfc8b94f1128566f54a0a8d7bdfce6e9 to your computer and use it in GitHub Desktop.
Check xenon artifacts sync status in maven central
This file contains hidden or 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/sh | |
| # Check xenon artifacts sync status in maven central | |
| # Tip: use watch command to periodically run this command | |
| # > watch -n 30 confirm-central-sync.sh 0.7.6 | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 VERSION-TO-CHECK" >&2 | |
| exit 1 | |
| fi | |
| VERSION=$1 | |
| BASE_URL=http://repo.maven.apache.org/maven2/com/vmware/xenon | |
| ARTIFACT_AND_TYPES=" | |
| xenon-common:jar | |
| xenon-dns:jar | |
| xenon-parent:pom | |
| xenon-loader:jar | |
| xenon-slf4j:jar | |
| xenon-swagger:jar | |
| xenon-ui:jar | |
| " | |
| echo "Checking xenon artifacts version=${VERSION}" | |
| for ARTIFACT_AND_TYPE in ${ARTIFACT_AND_TYPES} | |
| do | |
| ARTIFACT=${ARTIFACT_AND_TYPE%:*} | |
| TYPE=${ARTIFACT_AND_TYPE#*:} | |
| URL="${BASE_URL}/${ARTIFACT}/${VERSION}/${ARTIFACT}-${VERSION}.${TYPE}" | |
| RESPONSE_CODE=`curl -sI -w "%{http_code}" -o /dev/null ${URL}` | |
| echo "${ARTIFACT}: ${RESPONSE_CODE} -- ${URL}" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment