How to trigger a build remotely from jenkins? How to configure git post commit hook?
Answer / Abhishek Ranjan
To trigger a build remotely from Jenkins, you can use the Jenkins API. Here's an example of how to do it using curl:ncurl -u YOUR_JENKINS_USER:YOUR_JENKINS_TOKEN https://YOUR_JENKINS_URL/job/YOUR_JOB_NAME/buildnnTo configure a Git post-commit hook, follow the steps provided in the separate answer for question 284671.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the advantages of jenkins?
Mention some of the useful plugins in jenkins.
Why is jenkins called a continuous delivery tool?
Which scm tools are supported in jenkins?
What is blue ocean in jenkins?
What is a continuous delivery pipeline?
Explain the terms agent, post-section, jenkinsfile
What is a jenkins pipeline?
What are parameters in jenkins?
What is declarative pipeline in jenkins?
How can you secure jenkins?
What is agent in jenkins?