- 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}