I have a multibranch pipeline which is currently using the multibranch scan webhook trigger to run a build everytime a pull request is created. I'm trying to get jenkins to trigger the build as well as parse the payload into the build as variables but can't figure it out. Have looked at sending two webhooks, one to trigger a build and the other to parse the payload information into the build but can't get it working.
Am looking to parse the payload so that I can then use the pull request details in my automation scripts that run at the end of a successful build.
Anyone done something like this before?