Last active
January 28, 2016 18:13
-
-
Save txag1995/ca075bc275e02f340277 to your computer and use it in GitHub Desktop.
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
knife spork bump sample-cookbook $BUMP_LEVEL | |
COOKBOOK_VERSION=v`sed -n "s/^ *version *[\'\"]\(.*\)[\'\"]/\1/p" cookbooks/$JOB_NAME/metadata.rb` | |
echo COOKBOOK_VERSION=$COOKBOOK_VERSION >> build.properties | |
cd cookbooks/$JOB_NAME | |
if [ -b "Berksfile.lock" ] | |
then | |
berks update sample-cookbook | |
else | |
berks install | |
fi | |
berks upload sample-cookbook | |
git add metadata.rb | |
git commit -m "Bump version to $COOKBOOK_VERSION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment