Your SlideShare is downloading. ×
Git+jenkins+rex presentation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Git+jenkins+rex presentation

324
views

Published on


1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
324
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Git+Jenkins+Rexjust another git+jenkins+rex presentation By: ruckuus@gmail.com
  • 2. What is Git?● Its a history tracker
  • 3. What is Github?● http://learn.github.com/p/intro.html
  • 4. What Is Jenkins?● You can let Jenkins type for you the way you want it to be
  • 5. Git+Jenkins● Just like SVN+Jenkins● Authentication – Public key: /home/user/.ssh/id_rsa.pub – Private key: /home/user.ssh/id_rsa
  • 6. Git from developer PoV● Get the working copy git clone git@github.com:twitter/bootstrap.git git clone https://github.com/twitter/bootstrap.git git clone git://github.com/twitter/bootstrap.git● Select branch git checkout master● Create a new working branch git checkout -b PRODUCTBACKLOG-2000 master git checkout -b <NEW_BRANCH> <REFERENCE_BRANCH> git checkout -b <NEW_BRANCH> #default is current branch
  • 7. Git from developer PoV● Commit changes git commit git commit -m git commit -a -s● Rebase “Put your local changes as the latest changes from the rebasee branch on your local working copy”
  • 8. Rebase● Put your local changes as the latest changes of the universe. – You have the latest status of the collaboration branch. – Your change is just an addition, wont conflict to others. – Safer than merge – http://mislav.uniqpath.com/2013/02/merge-vs- rebase/
  • 9. Rebase Mechanics
  • 10. Git from Jenkins PoV● Our Jenkins deploys from feature branch, NOT from integration branch● Not from master● Not from origin/master● Why? We need it● We dont maintain build history since the branch is inconsistent in every build
  • 11. Git from Jenkins PoV● Build is parameterized – Branchs name – Target server● Always checkout a new copy● git checkout -b b-XyZ-PRODUCTBACKLOG-2000 origin/PRODUCTBACKLOG-2000● Build● Deploy to target server
  • 12. Rex● An instrument to build and deploy● We have several groups of servers – They have different purpose – Different version of code – Different user● http://rexify.org● deploy/Rexfile
  • 13. How To Rex?● rex -T● rex -E integration do_deploy –target=platform● rex -E staging do_deploy –target=th● Relax, its all done by Jenkins.