SlideShare a Scribd company logo
Jira , Bitbucket and
Bamboo
By Elie Hanna
Git :
• Git is a version control system
• VCS are Tools that helps to manage changes in the source
code over time
• Types of VCS: centralized ,distributed
• Git is a distributed VCS.
Bitbucket is a server repository
1. Linux:
• apt-get update or yum update
• apt-get install git or yum install git
• Check git version : git --version
• Configure username : git config --global user.name “Username”
• Configure email : git config --global user.email“Email”
2. Windows:
• https//gitforwindows.org/
• Follow the installation wizard
• Configure username : git config --global user.name “Username”
• Configure email : git config --global user.email“Email”
Git Installation :
Bitbucket git-bamboo-jira
Git task Notes Git commands
Tell Git who you are
Configure the author name
and email address to be used
with your commits.Note that
Git strips some characters (for
example trailing periods) from
user.name.
git config --global user.name
"Sam Smith"
git config --global user.email
sam@example.com
Create a new local
repository
git init
Check out a repository
Create a working copy of a
local repository:
git clone /path/to/repository
For a remote server, use:
git clone
username@host:/path/to/rep
ository
Add files
Add one or more files to
staging (index):
git add git add *
Commit
Commit changes to head (but
not yet to the remote
repository):
git commit -m "Commit
message"
Commit any files you've added
with git add, and also commit
any files you've changed since
then:
git commit -a
Push
Send changes to the master
branch of your remote
repository:
git push origin master
Status
List the files you've changed
and those you still need to
add or commit:
git status
Connect to a remote
repository
If you haven't connected
your local repository to a
remote server, add the
server to be able to push to
it:
git remote add origin
List all currently configured
remote repositories:
git remote -v
Branches
Create a new branch and
switch to it:
git checkout -b
Switch from one branch to
another:
git checkout
List all the branches in your
repo, and also tell you what
branch you're currently in:
git branch
Delete the feature branch: git branch -d
Push the branch to your
remote repository, so others
can use it:
git push origin
Push all branches to your
remote repository:
git push --all origin
Delete a branch on your
remote repository:
git push origin :
Update from the remote
repository
Fetch and merge changes on the
remote server to your working
directory:
git pull
To merge a different branch into
your active branch:
git merge
View all the merge conflicts:View
the conflicts against the base
file:Preview changes, before
merging:
git diff
git diff --base
git diff
After you have manually resolved
any conflicts, you mark the changed
file:
git add
Tags
You can use tagging to mark a
significant changeset, such as a
release:
git tag 1.0.0
CommitId is the leading characters
of the changeset ID, up to 10, but
must be unique. Get the ID using:
git log
Push all tags to remote repository: git push --tags origin
o local changes
If you mess up, you can replace the
changes in your working tree with the
last content in head:Changes already
added to the index, as well as new
files, will be kept.
git checkout --
Instead, to drop all your local changes
and commits, fetch the latest history
from the server and point your local
master branch at it, do this:
git fetch origin
git reset --hard origin/master
Search
Search the working directory for
foo():
git grep "foo()"
Bitbucket git-bamboo-jira
Bitbucket And Jira:
• Login to bitbucket using an Atlassian account (cloud)
• Add VCS Account through Jira application links(optional).
• Once linked you can go back to bitbucket and create a new
repository.
• Jira issue can be linked by including issue key in the commit
message.
Bitbucket git-bamboo-jira
• Select your workspace
• Enter project name (a good practice is to
have a bitbucket project for each jira
project)
• Enter repository name
• Select access levels
• Create the repositry
To clone a repository , got to source
And press on clone
Copy the git command and paste I in a command line.
If you are prompted to login enter your credentials.
Menu Overview:
• Source: containing all the files and source codes
• Commits: a list of all commits with details
• Branches: a list of all branches with the ability to create
a new branch through the bitbucket UI.
• Pull requests: a list of pull requests to merge branches to the master branch
• Pipelines and deployments: used by the dev team to setup continuous
Integration And deployment (Bamboo is used for this purpose on server).
• Jira issues : a list of linked Jira issues.
• Downloads : to download the repository
• Repository settings
Main repository settings
Jira and bitbucket:
• Once linked with bitbucket, and new development section will appear on the Jira ticket.
• A new branch corresponding to the issue can be created
• All the details concerning this issue will be displayed in
the development section (pull requests,builds…)
• Also , on the workflow transitions , triggers can be added
to transition issue automatically based on a bitbucket event
such as : pull request created,pull request denied ,commit created…
Bitbucket git-bamboo-jira
• Bamboo is a tool from Atlassian suite.
• It is used for continuous integration, deployment, and delivery.
• Bamboo is java based.
• Platform independent (is compatible with different programing
languages)
Bitbucket git-bamboo-jira
How to install Bamboo:
• As Bamboo is java based , it runs with JDK (not JRE).
• make sure that JDK is installed and the JAVA_HOME variable is
set correctly.
• Download JDK: https://www.oracle.com/java/technologies/javase-
downloads.html
• Set JAVA_HOME: https://confluence.atlassian.com/doc/setting-
the-java_home-variable-in-windows-8895.html
How to install Bamboo:
1. Download Bamboo
Download Bamboo from the Atlassian download site. You can choose either the Windows
Installer versions (.exe) or the ZIP Archive (.zip).
2. Start Bamboo
a) In the command line, change the directory to <Bamboo installation directory> and run
the command to start Bamboo:
$ cd <Bamboo installation directory>
$ binstart-bamboo.bat
b) After successfully starting Bamboo, you will find it online at http://localhost:8085/
3. Configure Bamboo
You are starting Bamboo for the first time, so you will need to follow the Setup Wizard to
configure Bamboo. See Running the Setup Wizard.
Linking bamboo with other apps:
• Bamboo can be linked to jira using the application links
https://confluence.atlassian.com/bamboo/linking-to-another-
application-360677713.html
• Bamboo is linked to bitbucket through application links
also(server)
• Note that bamboo is only available as a server version
Automatically linking issues to a build
• Bamboo will automatically link an issue to a build if you
specify a Jira issue key in a Bamboo build comment or label,
or in a code commit message.
• The issue key must be of the default Jira issue key format.
Manually linking issues to a build
1. Go to the plan in Bamboo.
2. Click on the build number for a build result.
3. Click the Issues tab in the 'Build Result Summary'. All of the Jira
issues linked to your build will be listed.
4. Click Add linked issue.
5. Enter the Jira issue key of the issue you want to link to this build.
Please note, the issue key must be of the default Jira issue key
format.
6. Click Save.
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
Getting started with Bamboo
https://www.youtube.com/playlist?list=PLaD4FvsFdarQp-
qHSr3EqWz1WLFa-HUeD
Using Bamboo:
• Go to Localhost:8085
• Put in the license
• Two installation options are vailable:
1. Express (integrated db)
2. And custom (custom database postgres,sql…)
Bitbucket git-bamboo-jira
Create a new plan:
• Click create new plan
• Fill in the data in the popup window (choose repository and host)
• In the authentication part, use the Atlassian username used to
login to bitbucket
• For the password go to bitbucket ,click on your profile ,then app
passwords and generate a new password and use it.
• Then for the authentication type use the username and password
or ssh key pairs. (ssh-keygen -m PEM -t rsa)
https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-
key/
Bitbucket git-bamboo-jira
Bitbucket git-bamboo-jira
Configure jobs:
Create Tasks:
Create Tasks:
• Task can be chosen from a set of built-in bundles, such as
maven builder for java projects…
• Or custom scripts can be added to run as a task.
• Also, repository tasks such as creating a new branch can be
done too.
Plan actions:
• Disable plan
• Add or modify plan label (can include a jira issue key)
• Delete plan
• Run (run the plan with all jobs and tasks)
Plan configuration page:
Ad

More Related Content

What's hot (20)

Bitbucket
BitbucketBitbucket
Bitbucket
Okba Mahdjoub
 
Bamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - BriefBamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - Brief
Ellen Feaheny
 
Git branching-model
Git branching-modelGit branching-model
Git branching-model
Aaron Huang
 
Git and GitFlow branching model
Git and GitFlow branching modelGit and GitFlow branching model
Git and GitFlow branching model
Pavlo Hodysh
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
Abe Diaz
 
Save Time and Money with Automation
Save Time and Money with AutomationSave Time and Money with Automation
Save Time and Money with Automation
Chris Jean
 
Jenkins
JenkinsJenkins
Jenkins
Roger Xia
 
Up GitLab Presentation 2015
Up GitLab Presentation 2015Up GitLab Presentation 2015
Up GitLab Presentation 2015
Kumaran Balachandran
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
Medhat Dawoud
 
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013 .Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
Tikal Knowledge
 
Git best practices 2016
Git best practices 2016Git best practices 2016
Git best practices 2016
Otto Kekäläinen
 
Teaching a Designer to Use GitHub
Teaching a Designer to Use GitHubTeaching a Designer to Use GitHub
Teaching a Designer to Use GitHub
Liam Dempsey
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
Geoff Hoffman
 
Version control
Version controlVersion control
Version control
visual28
 
Continuous integration using atlassian bamboo
Continuous integration using atlassian bambooContinuous integration using atlassian bamboo
Continuous integration using atlassian bamboo
Alexander Masalov
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
Veronica Ojochona Michael (MCP)
 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
Knoldus Inc.
 
Continuous delivery with open source tools
Continuous delivery with open source toolsContinuous delivery with open source tools
Continuous delivery with open source tools
Sebastian Helzle
 
CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github Actions
Md. Minhazul Haque
 
Git best practices workshop
Git best practices workshopGit best practices workshop
Git best practices workshop
Otto Kekäläinen
 
Bamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - BriefBamboo Continuous Integration Server - Brief
Bamboo Continuous Integration Server - Brief
Ellen Feaheny
 
Git branching-model
Git branching-modelGit branching-model
Git branching-model
Aaron Huang
 
Git and GitFlow branching model
Git and GitFlow branching modelGit and GitFlow branching model
Git and GitFlow branching model
Pavlo Hodysh
 
Introduction to jenkins
Introduction to jenkinsIntroduction to jenkins
Introduction to jenkins
Abe Diaz
 
Save Time and Money with Automation
Save Time and Money with AutomationSave Time and Money with Automation
Save Time and Money with Automation
Chris Jean
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
Medhat Dawoud
 
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013 .Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
Tikal Knowledge
 
Teaching a Designer to Use GitHub
Teaching a Designer to Use GitHubTeaching a Designer to Use GitHub
Teaching a Designer to Use GitHub
Liam Dempsey
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
Geoff Hoffman
 
Version control
Version controlVersion control
Version control
visual28
 
Continuous integration using atlassian bamboo
Continuous integration using atlassian bambooContinuous integration using atlassian bamboo
Continuous integration using atlassian bamboo
Alexander Masalov
 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
Knoldus Inc.
 
Continuous delivery with open source tools
Continuous delivery with open source toolsContinuous delivery with open source tools
Continuous delivery with open source tools
Sebastian Helzle
 

Similar to Bitbucket git-bamboo-jira (20)

Git & GitLab
Git & GitLabGit & GitLab
Git & GitLab
Gaurav Wable
 
Git and git hub basics
Git and git hub basicsGit and git hub basics
Git and git hub basics
prostackacademy
 
Git hub
Git hubGit hub
Git hub
Nitin Goel
 
Git for developers
Git for developersGit for developers
Git for developers
Hacen Dadda
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
Wycliff1
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
Gourav Varma
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution process
Syed Armani
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Process
openstackindia
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git Workshop
BeckhamWee
 
Version control
Version controlVersion control
Version control
Ghufran Ataie
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
Mohammed Shaban
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
Sameera Wijesekara
 
Git
GitGit
Git
Shinu Suresh
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your Project
Manish Suwal 'Enwil'
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
atishgoswami
 
Git for developers
Git for developersGit for developers
Git for developers
Hacen Dadda
 
Introduction to git and Github
Introduction to git and GithubIntroduction to git and Github
Introduction to git and Github
Wycliff1
 
Version control git day02
Version control   git day02Version control   git day02
Version control git day02
Gourav Varma
 
Openstack contribution process
Openstack contribution processOpenstack contribution process
Openstack contribution process
Syed Armani
 
OpenStack Contribution Process
OpenStack Contribution ProcessOpenStack Contribution Process
OpenStack Contribution Process
openstackindia
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
Naveen Pandey
 
3DC Intro to Git Workshop
3DC Intro to Git Workshop3DC Intro to Git Workshop
3DC Intro to Git Workshop
BeckhamWee
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
Version control git day01
Version control   git day01Version control   git day01
Version control git day01
Gourav Varma
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
Mohammed Shaban
 
Beginner's Guide to Version Control with Git
Beginner's Guide to Version Control with GitBeginner's Guide to Version Control with Git
Beginner's Guide to Version Control with Git
Robert Lee-Cann
 
Using Git to Organize Your Project
Using Git to Organize Your ProjectUsing Git to Organize Your Project
Using Git to Organize Your Project
Manish Suwal 'Enwil'
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
atishgoswami
 
Ad

Recently uploaded (20)

Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
How iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost FundsHow iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost Funds
ireneschmid345
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
Conic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptxConic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptx
taiwanesechetan
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Geometry maths presentation for begginers
Geometry maths presentation for begginersGeometry maths presentation for begginers
Geometry maths presentation for begginers
zrjacob283
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
How iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost FundsHow iCode cybertech Helped Me Recover My Lost Funds
How iCode cybertech Helped Me Recover My Lost Funds
ireneschmid345
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
Conic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptxConic Sectionfaggavahabaayhahahahahs.pptx
Conic Sectionfaggavahabaayhahahahahs.pptx
taiwanesechetan
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Geometry maths presentation for begginers
Geometry maths presentation for begginersGeometry maths presentation for begginers
Geometry maths presentation for begginers
zrjacob283
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Ad

Bitbucket git-bamboo-jira

  • 1. Jira , Bitbucket and Bamboo By Elie Hanna
  • 2. Git : • Git is a version control system • VCS are Tools that helps to manage changes in the source code over time • Types of VCS: centralized ,distributed • Git is a distributed VCS.
  • 3. Bitbucket is a server repository
  • 4. 1. Linux: • apt-get update or yum update • apt-get install git or yum install git • Check git version : git --version • Configure username : git config --global user.name “Username” • Configure email : git config --global user.email“Email” 2. Windows: • https//gitforwindows.org/ • Follow the installation wizard • Configure username : git config --global user.name “Username” • Configure email : git config --global user.email“Email” Git Installation :
  • 6. Git task Notes Git commands Tell Git who you are Configure the author name and email address to be used with your commits.Note that Git strips some characters (for example trailing periods) from user.name. git config --global user.name "Sam Smith" git config --global user.email [email protected] Create a new local repository git init Check out a repository Create a working copy of a local repository: git clone /path/to/repository For a remote server, use: git clone username@host:/path/to/rep ository Add files Add one or more files to staging (index): git add git add * Commit Commit changes to head (but not yet to the remote repository): git commit -m "Commit message" Commit any files you've added with git add, and also commit any files you've changed since then: git commit -a
  • 7. Push Send changes to the master branch of your remote repository: git push origin master Status List the files you've changed and those you still need to add or commit: git status Connect to a remote repository If you haven't connected your local repository to a remote server, add the server to be able to push to it: git remote add origin List all currently configured remote repositories: git remote -v Branches Create a new branch and switch to it: git checkout -b Switch from one branch to another: git checkout List all the branches in your repo, and also tell you what branch you're currently in: git branch Delete the feature branch: git branch -d Push the branch to your remote repository, so others can use it: git push origin Push all branches to your remote repository: git push --all origin Delete a branch on your remote repository: git push origin :
  • 8. Update from the remote repository Fetch and merge changes on the remote server to your working directory: git pull To merge a different branch into your active branch: git merge View all the merge conflicts:View the conflicts against the base file:Preview changes, before merging: git diff git diff --base git diff After you have manually resolved any conflicts, you mark the changed file: git add Tags You can use tagging to mark a significant changeset, such as a release: git tag 1.0.0 CommitId is the leading characters of the changeset ID, up to 10, but must be unique. Get the ID using: git log Push all tags to remote repository: git push --tags origin
  • 9. o local changes If you mess up, you can replace the changes in your working tree with the last content in head:Changes already added to the index, as well as new files, will be kept. git checkout -- Instead, to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it, do this: git fetch origin git reset --hard origin/master Search Search the working directory for foo(): git grep "foo()"
  • 11. Bitbucket And Jira: • Login to bitbucket using an Atlassian account (cloud) • Add VCS Account through Jira application links(optional). • Once linked you can go back to bitbucket and create a new repository. • Jira issue can be linked by including issue key in the commit message.
  • 13. • Select your workspace • Enter project name (a good practice is to have a bitbucket project for each jira project) • Enter repository name • Select access levels • Create the repositry
  • 14. To clone a repository , got to source And press on clone Copy the git command and paste I in a command line. If you are prompted to login enter your credentials.
  • 15. Menu Overview: • Source: containing all the files and source codes • Commits: a list of all commits with details • Branches: a list of all branches with the ability to create a new branch through the bitbucket UI. • Pull requests: a list of pull requests to merge branches to the master branch • Pipelines and deployments: used by the dev team to setup continuous Integration And deployment (Bamboo is used for this purpose on server). • Jira issues : a list of linked Jira issues. • Downloads : to download the repository • Repository settings
  • 17. Jira and bitbucket: • Once linked with bitbucket, and new development section will appear on the Jira ticket. • A new branch corresponding to the issue can be created • All the details concerning this issue will be displayed in the development section (pull requests,builds…) • Also , on the workflow transitions , triggers can be added to transition issue automatically based on a bitbucket event such as : pull request created,pull request denied ,commit created…
  • 19. • Bamboo is a tool from Atlassian suite. • It is used for continuous integration, deployment, and delivery. • Bamboo is java based. • Platform independent (is compatible with different programing languages)
  • 21. How to install Bamboo: • As Bamboo is java based , it runs with JDK (not JRE). • make sure that JDK is installed and the JAVA_HOME variable is set correctly. • Download JDK: https://www.oracle.com/java/technologies/javase- downloads.html • Set JAVA_HOME: https://confluence.atlassian.com/doc/setting- the-java_home-variable-in-windows-8895.html
  • 22. How to install Bamboo: 1. Download Bamboo Download Bamboo from the Atlassian download site. You can choose either the Windows Installer versions (.exe) or the ZIP Archive (.zip). 2. Start Bamboo a) In the command line, change the directory to <Bamboo installation directory> and run the command to start Bamboo: $ cd <Bamboo installation directory> $ binstart-bamboo.bat b) After successfully starting Bamboo, you will find it online at http://localhost:8085/ 3. Configure Bamboo You are starting Bamboo for the first time, so you will need to follow the Setup Wizard to configure Bamboo. See Running the Setup Wizard.
  • 23. Linking bamboo with other apps: • Bamboo can be linked to jira using the application links https://confluence.atlassian.com/bamboo/linking-to-another- application-360677713.html • Bamboo is linked to bitbucket through application links also(server) • Note that bamboo is only available as a server version
  • 24. Automatically linking issues to a build • Bamboo will automatically link an issue to a build if you specify a Jira issue key in a Bamboo build comment or label, or in a code commit message. • The issue key must be of the default Jira issue key format.
  • 25. Manually linking issues to a build 1. Go to the plan in Bamboo. 2. Click on the build number for a build result. 3. Click the Issues tab in the 'Build Result Summary'. All of the Jira issues linked to your build will be listed. 4. Click Add linked issue. 5. Enter the Jira issue key of the issue you want to link to this build. Please note, the issue key must be of the default Jira issue key format. 6. Click Save.
  • 30. Getting started with Bamboo https://www.youtube.com/playlist?list=PLaD4FvsFdarQp- qHSr3EqWz1WLFa-HUeD
  • 31. Using Bamboo: • Go to Localhost:8085 • Put in the license • Two installation options are vailable: 1. Express (integrated db) 2. And custom (custom database postgres,sql…)
  • 33. Create a new plan: • Click create new plan • Fill in the data in the popup window (choose repository and host) • In the authentication part, use the Atlassian username used to login to bitbucket • For the password go to bitbucket ,click on your profile ,then app passwords and generate a new password and use it. • Then for the authentication type use the username and password or ssh key pairs. (ssh-keygen -m PEM -t rsa) https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh- key/
  • 38. Create Tasks: • Task can be chosen from a set of built-in bundles, such as maven builder for java projects… • Or custom scripts can be added to run as a task. • Also, repository tasks such as creating a new branch can be done too.
  • 39. Plan actions: • Disable plan • Add or modify plan label (can include a jira issue key) • Delete plan • Run (run the plan with all jobs and tasks)