Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to expose the EventListener to Bitbucket webhook #362

Closed
amlozano opened this issue Jan 21, 2020 · 8 comments · Fixed by #596
Closed

How to expose the EventListener to Bitbucket webhook #362

amlozano opened this issue Jan 21, 2020 · 8 comments · Fixed by #596
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@amlozano
Copy link

Expected Behavior

I can call an EventListener from Bitbucket, authorising the call with a token

Actual Behavior

I can configure a generic Webhook EventListener, but I don't find an easy way of exposing the EventListener to be called from BitBucket with a token Authentication. I can only think on exposing an interceptor that will handle the authentication, which requires a component to be coded from my side.

Steps to Reproduce the Problem

No steps needed

Additional Info

I was already able to trigger the pipeline from a generic webhook, doing port forwarding directly to the pod and calling it locally, but checking on how the GitLab and GitHub examples work, I would need an interceptor that checks for the token to be able to connect Bitbucket server with the webhook. Is there any plan to release a Bitbucket interceptor, or do I need to implement my own?

@dibyom
Copy link
Member

dibyom commented Jan 27, 2020

Hey @amlozano You are right that at the moment we do not have a built in BitBucket interceptor. That would definitely be a nice feature to add if you'd like to add it. We can follow the same patterns as the GitHub/Gitlab ones: https://github.com/tektoncd/triggers/blob/master/pkg/interceptors/github/github.go

@dibyom
Copy link
Member

dibyom commented Jan 27, 2020

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 27, 2020
@amlozano
Copy link
Author

Hi dibyom, I may have time to invest into the implementation, I have to check first since I am not really experienced with Golang and it might take too much time from my project to do that. I created the ticket to keep track of it at least, and if anyone with more experience wants to help, it would be awesome.

@savitaashture
Copy link
Contributor

Hi @amlozano
Are you working on this feature?

@amlozano
Copy link
Author

amlozano commented Apr 1, 2020

@savitaashture no, sorry. I don’t find time now to work on this, plus we discarded going on with tekton for the moment. Maybe we will give it a try in the future.

@savitaashture
Copy link
Contributor

/assign

@savitaashture
Copy link
Contributor

@savitaashture no, sorry. I don’t find time now to work on this, plus we discarded going on with tekton for the moment. Maybe we will give it a try in the future.

@amlozano thank you for the conformation 👍

@sravankumar777
Copy link
Contributor

Looking for this feature for our use case using tekton pipelines.
Would like to listen to events from bitbucket webhook and trigger the pipeline for building & deployment operations.
Would be great to see about it :)
@savitaashture, thanks for working on this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants