jenkinsci/bitbucket-branch-source-plugin

bitbucket webhook payload on env variable

wawashra opened this issue · 2 comments

What feature do you want to see added?

Hi, Is any chance to have the bitbucket webhook payload inside env var ?
the are many cases we need to apply base on some information from the payload like send an email to all pr reviews user or triggered extra stage when pr has approved event key

Thanks

Upstream changes

No response

See #413 (comment) and master...oleh-ozimok:bitbucket-branch-source-plugin:bitbucket-payload-in-job for a fork that at least saves the webhook payload, although doesn't publish it as an environment variable.

I saw the forked repo, but the question how I can have a ready build from it to install on my jenkins ? and how I can use the payload data inside my pipeline ? Could you please recap the steps for that ^_^

Thanks