Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Last active May 26, 2017 00:33
Show Gist options
  • Save waltervargas/b5ff8de2704d5857137d566d92b7bf52 to your computer and use it in GitHub Desktop.
Save waltervargas/b5ff8de2704d5857137d566d92b7bf52 to your computer and use it in GitHub Desktop.
Jenkinsfile with a stage to install bats the bash testing suite
node('master'){
stage('Install Bats'){
sh """
if [ ! -d bats ]; then
git clone https://github.com/sstephenson/bats.git
fi
if [ ! -f ~/.local/bin/bats ]; then
cd bats/
./install.sh $HOME/.local
fi
"""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment