Hi #cicd:jenkins community,
I am working on jenkins, ansible Integration task.
I have written ansible script which generates ssh keys, establish password-less connectivity between host server and multiple remote server but now I am stuck at a point. I am supposed to add the generated private keys to my jenkins config file management. I have below job and folder structure.
Jenkins Dashboard → my_project → connectivity.
connectivity job runs the ansible script and my_project is the folder under which I have to add the private key as custom config file under config file management. I want to automate the task of adding private keys and not using Jenkins UI.
I tried using Jenkins API but unable to complete the task.
Need help and assistance from the person who knows it.