Skip to content

Instantly share code, notes, and snippets.

View garethahealy's full-sized avatar

Gareth Healy garethahealy

View GitHub Profile
@joakime
joakime / mvn-loop-test.sh
Last active November 8, 2016 17:02
Bash Script to loop mvn test till failure (for intermittent test failures)
#!/bin/bash
let count=0
while mvn test $* 2>&1 > target/lastbuild.log
do
now=`date`
echo "Test Run $count - $now" >> target/looptest.log
let count=$count+1
done
@basmussen
basmussen / install_jenkins_plugins.sh
Created December 30, 2013 14:36
Install Jenkins plugins
#!/bin/bash
host=http://localhost:8080
url=/pluginManager/installNecessaryPlugins
# git plugin https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
curl -X POST -d '<jenkins><install plugin="git@2.0" /></jenkins>' --header 'Content-Type: text/xml' $host$url
# artifactory plugin https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin
curl -X POST -d '<jenkins><install plugin="artifactory@2.2.1" /></jenkins>' --header 'Content-Type: text/xml' $host$url
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/
# core
brew install coreutils
# key commands
brew install binutils
brew install diffutils
brew install ed --default-names
brew install findutils --with-default-names