Skip to content

Instantly share code, notes, and snippets.

View daveyc's full-sized avatar

David Crayford daveyc

  • Rocket Software
View GitHub Profile
#!/bin/bash
# Recursively deploys folder content. Attempt checksum deploy first to optimize upload time.
repo_url="http://artifactory:8081/artifactory"
tgt_repo="some_repository"
user=user
pass=password
dir="$2"
if [ -z "$dir" ]; then echo "Please specify a directory to recursively upload from!"; exit 1; fi
if [ ! -x "`which sha1sum`" ]; then echo "You need to have the 'sha1sum' command in your path."; exit 1; fi
# Upload by checksum all jars and pom from the source dir to the target repo