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 | |
set -e | |
[ "x${JENKINS_URL}" == "x" ] && JENKINS_URL=http://127.0.0.1/jenkins/ | |
JENKINS_USER=YourJenkinsUser | |
JENKINS_PASS=YourPass | |
XML=`which xmlstarlet` || { echo "please install xmlstarlet and try again"; exit 2; } | |
isJavaAvail(){ # find java |
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 | |
repofilebucket="$1" | |
file=$2 | |
echo "Filebucket repo: $1"; | |
echo "File to restore: $2"; | |
files=$(find $repofilebucket -iname "paths" | xargs -i ls {}) | |
for i in $files |