Skip to content

How to trigger pipeline when pull request opened in Bitbucket #5340

Answered by KIRY4
KIRY4 asked this question in Q&A
Discussion options

You must be logged in to vote

Here is answer! To make this pipeline work with Pull Request, it was necessary to rewrite everything in accordance with Bitbucket Pull Request event payload.
https://confluence.atlassian.com/bitbucketserver0721/event-payload-1115665959.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash#Eventpayload-pullrequest

---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
  name: mrc-new-trigger-binding
spec:
  params:
  # - name: git-repo-url
  #   value: ssh://[email protected]:7999/$(body.repository.project.key)/$(body.repository.name).git
  # - name: git-revision
  #   value: $(body.changes[0].ref.displayId)
  # - name: git-repo-name
  #   value: $(bo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KIRY4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant