Last active
May 26, 2017 00:33
-
-
Save waltervargas/b5ff8de2704d5857137d566d92b7bf52 to your computer and use it in GitHub Desktop.
Jenkinsfile with a stage to install bats the bash testing suite
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
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