Questions tagged [bitbucket-webhook]

9 questions
2
votes
1 answer

Jenkins not triggering build on PR merged in bitbucket

We are using Bitbucket cloud to host our repos and Jenkins for CI/CD. I have setup a multibranch pipeline which has develop and release branches. I want to trigger develop branch whenever a PR is merged from the feature branches to develop a branch…
Adityat
  • 21
  • 2
1
vote
0 answers

Bitbucket call webhook php code not executing git command and when I execute from command prompt same command runs perfectly

When I commit my code form source tree bitbucket triggers a webhook that hit php code exec('cd /d ' . $web_root_dir . ' && '. $git_bin_path . ' pull origin master'); it won't execute but when I copy the same command by copying from the log on…
1
vote
1 answer

Managing webhooks in Bitbucket Server

when I configure the web-hooks from bitbucket server. Is there any configuration, I should configured in Jenkins server? eg : special permission for anonymous users.. Because when I try to test the connection, I am receiving a 403 error. Please see…
0
votes
0 answers

Jenkins Webhook trigger issue

Added webhook in Bitbucket repo and have 2 different jobs for dev and UAT. if I merge some changes to dev branch along with the dev job UAT job is also triggered in Jenkins. And even if I did some changes in a feature branch and push it to the…
0
votes
1 answer

how to prevent triggering of job by Webhook

I have git monorepo repository with multiple projects inside. So I have following structure of Jenkinsfiles in this repo: |-Jenkinsfile (root one) |-projectA | |-Jenkinsfile (for projectA) | |- ... (project files) |-projectB |-Jenkinsfile (for…
Mateusz
  • 1,149
  • 1
  • 16
  • 33
0
votes
1 answer

What does $.changes[0].toHash represent in a Bitbucket webhook when the event is a tag added?

Our Bitbucker server is configured to invoke webhooks (received by Jenkins) on push events, which include branch updates, and tags added. The HTTP POST content included in this webhook is a JSON describing the event. The event payloads are described…
StoneThrow
  • 5,314
  • 4
  • 44
  • 86
0
votes
1 answer

Jenkins webook failed in Bitbucket but work fine with curl

I am working to create webhook which any git push from Bitbucket will trigger Jenkin job to run on a Linux host (without plugin). In jenkins, I created a simple pipeline, and came up with this webhook…
Bruce Lok
  • 21
  • 4
0
votes
0 answers

Bitbucket webhook is triggering all the Jenkins jobs for the repository?

I have created a Bitbucket webhook to trigger the jenkins jobs when a change is pushed to the repository. There are several different project in the repository and for each project a separate Jenkins Job is configured. Webhook URL goes like this:…
-1
votes
1 answer

Bitbucket API: Get workspace object in webhook payload

According to the documentation of the recent refactoring switch from user/team-based API to the workspace-based API, webhook payloads will soon have the owner property removed. Also according to this documentation, the webhook payloads already…
muetzenflo
  • 5,653
  • 4
  • 41
  • 82