Hi Techies,
I’m looking for a solution where I want to trigger a Jenkins build through Ansible.
I went through a module called jenkins_job from which I can connect to the jenkins server but not able to trigger a new build.
Please help me here and TIA.
The jenkins_job will create a jenkins job for you but it won’t run it. The way I got around this was calling the Jenkins REST API via the uri task. Keep in mind you’ll need to call the API to get a Jenkins Crumb first, then another call to trigger the build.