1) I am using Jenkins API to trigger a job, so when my monitoring tool sensu sends request Jenkins API to trigger jenkins JOb the build starts. 2) I have tried even manually by hitting buildnow instead of using API calls to make sure that it is not API call problem.
What does my build contain? It runs on Master and runs a ansible play-book with help of ansible plugin
Problem: Once the build is complete it is successful it automatically triggers another build with no reason again and runs the build again. And it is a simple job configuration which runs on master and runs ansible-playbook with help of Jenkins provided plugin
Any one could help me in what might be the issue? Jenkins Version: 2.89.3 Ansible plugin: 0.8
Also i could see for a jenkins job Started by user xyz Started by user xyz Started by user xyz Started by user xyz Started by user xyz Started by user xyz Started by user xyz for a single build
Instead of using the Ansible plugin, I recommend doing the Jenkins way:
Create a pipeline from a Jenkinsfile with something like:
You can control your pipeline in a more clean an easy way than with the Ansible Plugin.