git - What are Jenkins best practices with building with Grunt and deploying with Capistrano? -
git - What are Jenkins best practices with building with Grunt and deploying with Capistrano? -
i'm setting build server @ our office , wondering what's best practice this. know each situation asks different approach , there 1000000 ways accomplish same goal, since i'm newcomer jenkins , concept of build servers in general, wondering if i'm doing 'right'.
our company focusses on building websites various clients various platforms wordpress or magento. have next setup:
we force our changes master or staging-branch in git. jenkins polls these branches , next when alter detected:
pull repository git (master
in example) checkout branch called build-master
resets branch origin/master
does npm install
if package.json
found. does grunt build
if gruntfile.js
found. (here room other stuff phpunit or casperjs tests) commits changes , pushes origin/build-master
. executes cap build-master deploy
allow capistrano handle deployment on remote server. now wondering if 'correct' way of using build server. run logical problems. like:
vendor-software example. when have various js libraries bower illustration (which located in git-ignored js/vendor
-folder), can concatenate , uglify them minified js file git committed build-master
-repository (for capistrano). when have php-libraries (with composer example) i'm not sure how deal this. these located in git-ignored php/vendor
-folder, need included in build-master
-branch deployed on live-server. i'm doing adding .gitignore.build
repository, includes php/vendor
-folder, , overwrite existing .gitignore
1 prior before committing , pushing origin/build-master
.
and/or:
compiled files. when don't want include files (like css-files generated sass example), set these in .gitignore
. again, when capistrano going deploy it, want compiled, concatinated , minified css file in repository, otherwise it's not set on production server.
can tell me if i'm building , deploying in way 'should' be? or totally over-complicating here me? i'm interested in how people more experience utilizing jenkins, grunt, bower, composer, capistrano, etc. in build process.
i'm looking exact same response. in same situation, , wondering how done best start configuration. since you're wondering utilize of grunt deployment, there tutorial can useful your, hope give starting ideas: https://weluse.de/blog/continuous-deployment-with-yeoman-and-jenkins.html also, interested if have feedback current project.
git jenkins capistrano build-server
Comments
Post a Comment