On Wed, Apr 3, 2019 at 12:47 PM Daniel Anechitoaie
<
danie...@gmail.com> wrote:
> I need to pass the commit that will be then used by git plugin to make a build from that specific commit.
The `git` plugin already has such a hook. If for some reason you
cannot reuse it, study its code.
In general what you describe is a security risk. Your webhook needs to
demand some kind of proof that the caller is indeed authorized to
build that job, in that commit, with those parameters.