-
Notifications
You must be signed in to change notification settings - Fork 354
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
Add bitbucket webhook build cause #465
Conversation
Hi, Could you please fix the merge conflicts? :) |
anton-kyrylenko are you still looking into this? if not a i can fork an rebase on top of this PR |
@lifeofguenter, low effort rebase at #585 if this can speed this along. |
private String payload; | ||
|
||
public WebhookCause(String payload) { | ||
this.payload = payload; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the entire payload it's too much (maybe it's not safe neither to expose)
Store only the type of webhook event so in the cause you will see something like "pr::created event"
} | ||
|
||
public String getShortDescription() { | ||
return "Bitbucket Webhook Cause"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use message from property file like: Messages.WebhookCause_shortDescription(eventType);
So it can be translated
The plugin https://github.com/jenkinsci/bitbucket-plugin already provide the same functionality. |
Ability to get the bitbucket webhook cause payload.