Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to build jobs in jenkins when a change is pushed to Bitbucket

 
 
Bitbucket plugin is designed to offer integration between Bitbucket and Jenkins.
 
It exposes a single URI endpoint that you can add as a WebHook within each Bitbucket project you wish to integrate with. This single endpoint receives a full data payload from Bitbucket upon push (see their documentation), triggering compatible jobs to build based on changed repository/branch.
 
Step 1 – Install “Bitbucket Plugin” at your Jenkins
 
Step 2 – Add a normal Post as Hook to your Bitbucket repository (Settings -> Hooks) and use following url:
https://YOUR.JENKINS.SERVER:PORT/bitbucket-hook/
and if you have setup authentication on jenkins then URL must be like
 
https://USERNAME:PASSWORD@YOUR.JENKINS.SERVER:PORT/bitbucket-hook/
 
Step 3 – Configure your Jenkins project as follows:
 
Step 4 – Under build trigger enable Build when a change is pushed to BitBucket
 
Step 5 – under Source Code Management select GIT; enter your credentials and define Branches to build (like **feature/*)
 
Note 1 – Make sure to include the slash (‘/’) on the end of the URL or the hook won’t work.
 
Note 2 – Please read the BitBucket Plugin info page as well https://wiki.jenkins.io/display/JENKINS/BitBucket+Plugin
 
Reference 1  
 
Reference 2 – Login issues with Jenkins url
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x