I am trying to deploy the jenkins pod through docker and configure the Jenkins Jobs through the scripts. Using some of below restAPIs
a) https://<hostname>/scriptText
b) https://<hostname>/job//build
c) https://<hostname>/job/api/json
.
.
and more
However when I start building jobs, its getting failed due to the error ERROR: Unable to install JDK unless a valid username/password is provided.
It needs to change the configurations from Manage Jenkins -> Global Tool Configuration -> JDK -> JDK Installations
But there is no any restAPI available to perform this task.
Is there any way to change the jenkins global configuration programatically?