Hi Chris,

We do need to include examples there...

Try:

token=secret&review.url={{review_request.absolute_url}}

Christian

-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

On Wed, Apr 5, 2017 at 1:37 PM, Chris Eagan <cea...@gmail.com> wrote:

> I am trying to trigger a Jenkins Job using WebHooks in Review Board and I
> need to submit a custom payload as form data. After installing the
> https://plugins.jenkins.io/build-token-root plugin, I tried using the
> following settings.
>
> URL: https://jenkins.example.com/buildByToken/buildWithParameters?job=
> FolderName/JobName
> Events: Review request published
> Apply to: Only review requests on selected repositories
> Repositories: Example
> Encoding: Form Data
> Use custom payload content: Enabled
> Custom content:
>
> token=secret
>
> review.url={{review_request.absolute_url}}
>
>
> Unfortunately, this doesn't appear to trigger the job. I cam able to
> trigger the job using curl with the following command and it works.
>
> curl "https://jenkins.example.com/buildByToken/buildWithParameters?job=
> FolderName/JobName" -d token=secret -d review.url="https://
> reviewboard.example.com/r/12345/"
>
>
> Am I using the custom content section incorrectly with respect to Form
> Data? There are no examples on the Review Board documentation yet for this
> use case.
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to