- Create new user (e.g.
webhook
) with the following permissions:Overall > Read
,Job > Build
,Job > Read
&Job > Workspace
. Login as the user and get their API token - Under a job, enable "Trigger Builds Remotely" and set an authentication token
- Trigger a POST request with the following structure:
http://{USER}:{API_TOKEN}@{JENKINS_URL}/job/{JOB}/build?token={AUTHENTICATION_TOKEN}
Where do I get the AUTHENTICATION_TOKEN from? The API_TOKEN I found under my user name (http://localhost:8080/user/admin/configure).
Should I just create my own in bullet 2 above?
Thanks