How to install plugins in jenkins, with the help of jenkins Remote Access API?

advertisements

I would like to know, how can I install a plugin to Jenkins, using the Jenkins Remote access API? I found a way to install using jenkins CLI. But I need to know how to do the same using API. I tried using jenkins-python library. But I did not find any way to install plugin there.


I do not think this is possible. However, as a workaround you may consider creating a job that would install plugins via Jenkins CLI; you then can invoke that job via the API with appropriate parameters.