Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger jenkins jobs(jenkins file setup) based on pull request(Atlassian Bitbucket v6.6.3)

naresh2389 April 1, 2021

HI Team,

I am using  Atlassian Bitbucket v6.6.3 tool and i need to trigger jenkins job based on pull request. Can you please help in setting up this.

When i create pull request from Dev to SIT branch pull request changes should  validate it against SIT environment. Basically i should get the target branch details in jenkins file so that i can use environment variable for validation in jenkins file

Jenkins 2.26

Earlier we tried with hooks but that is not working now.

 

1 answer

0 votes
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 1, 2021

@naresh2389 

Hi Naresh

welcome to the Atlassian community

Have you already had a look to https://plugins.jenkins.io/bitbucket-push-and-pull-request/

the documentation goes through the required steps.

 

Alternatively you might want to check https://marketplace.atlassian.com/apps/1211284/webhook-to-jenkins-for-bitbucket?hosting=server&tab=overview

 

Cheers

Kurt

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events