bitbucket hooks not working using PR forking-workflow?

Hi There,

So I am new to trying a PR workflow on bitbucket since I joined a new company and I was used to the github way of forking the main repo in order to submit PR's with jenkins jobs setup to run tests via the "pull request plugin for jenkins" - everything worked with minimal setup effort.

The goal:  I want to setup a forking-workflow with PR's coupled with jenkins jobs which detect when a PR is openend/changed and runs a job to run all our tests before anyone spends anytime looking at the PR.

The problem: I tried setting up a post receive hook that used a "PR OPENED" trigger which targeted a parameterized jenkins job, specifying $BRANCH and $REPOSITORY ...which would be used to:  git branch: "${params.branch}", url: "${params.repository}"

The hook always failed to fire.

I spent a day on this before trying PR's on the original repo ....and seeing the hook fire.  

So, do bitbucket hooks work using a PR forking-workflow?  If so can someone please share their setup with me.  I read quite a bit of the atlassian docs, but did not find any obvious warnings about forked repos+bitbucket hooks.

Any advice is much appreciated.

Thanks,

Steve

 

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Wednesday in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

168 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you