InterviewSolution
Saved Bookmarks
| 1. |
How Jenkins jobs can be Triggered/Stopped/Controlled programmatically? |
|
Answer» Jenkins Remote Access API can be used to do things like -
and many other programming language-specific functionalities. It has WRAPPERS for main programming languages like - Python, Ruby & Java. It can be triggered via CURL as below - Jobs without parameters Simply an HTTP POST on JENKINS_URL/job/JOBNAME/build. Jobs with parameters Simple example - sending "String Parameters": curl JENKINS_URL/job/JOB_NAME/buildWithParameters --user USER:TOKEN --DATA id=123 --data verbosity=high |
|