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.
Turns out I needed this too. In the end I wound up with the following role (lightly tested in ansible 2.3.0.0 so far).
$ tree -A jenkins-job/
jenkins-job/
├── defaults
│ └── main.yml
└── tasks
└── main.yml
2 directories, 2 files
$ cat jenkins-job/defaults/main.yml
Thank you very much. It really helps me a lot.
Regards,
Venkatesh
Hi Venkat,
CAn you please share the complete file .
I want to use to do full build and deployemnt
Ansible should call jenkins to do build and deployment
PLease help
thanks
sam