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
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
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/sh | |
cd /path/to/jekyll/setup/ | |
rvmsudo jekyll build --lsi #I use rvm to manage rubies, and gems. | |
#once successfully built, commit the changes to the repo. | |
sudo git add --all | |
sudo git commit -m "Successful Build Commit - Build Number: $BUILD_NUMBER" #Build Number fetched from var that Jenkins makes available for shell scripts | |
sudo git push | |
#Once pushed to the git repo, we publish the blog with rsync. | |
sudo rsync -vrpzc --delete /path/to/jekyll/setup/ /Path/To/Apache/Web/Folder/For/Blog/ | |
if [ $? -eq 0 ] |