In this blog, we are going to
learn how we can integrate Git, Jenkins, and JIRA to achieve continuous
integration and continuous delivery.
What is
Continuous Integration?
Continuous Integration (CI) is a development practice that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early.
What is
Continuous Delivery?
Continuous delivery
(CD) is a software engineering approach in which teams produce software in
short cycles, ensuring that the software can be reliably released at any time
and, when releasing the software, doing so manually. It aims at building,
testing, and releasing software with greater speed and frequency.
Before Moving Further I
would highly recommend you to read this blog to
understand how to integrate Git with Jenkins.
Below Steps we need to
follow to achieve this task:
1) In Jenkins
Home page, Configure -->Manage Jenkins --> Install below JIRA Plugin.
2) Now Create New
Jenkins Job and in Source Code Management select Git.
3) Provide the
Path of Git Repository and Git Credentials.
4) Now
inside Add Post-build Action, Select JIRA Issue Updater.
5) Provide
the path of Rest Base URL as shown below in the screenshot. After that please
provide the username, password of Jira.
6) And in JQL for Selecting Issue to be updated provide the JIRA Project key and issue status as per your JIRA Workflow. Please make sure not to use any "".
7) Now
Execute Our Jenkins Job.
8) And
now if any test is failed we would be able to see it in inside JIRA along with
necessary logs.
How to get REST API, if using remote server(instead localhost)
ReplyHow to update an issue with Build number and closing issue on particular ticket.
Reply