- 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}
Hay how can i get The API Token??
i can get the Authentication Token from Trigger Build Remotely, but i struck at getting API Token.
Can you please help me out to get this. Because when i execute the Job i did not have provision to place the Username and Password.
Am in bit hurry can you please help me on this
Thanks,
Gouri