How can I modify a jenkins job configuration programatically without a restart?
Solution 1:
It turns out the crutial info seems to be wget's "--auth-no-challenge" option which apparently is for obscure webserver configurations like Jenkins that don't follow expected protocol:
wget --auth-no-challenge --user=joe.shmoe --password=secret \
--post-file=config.xml --no-check-certificate \
https://jenkins.company.com/job/myProject/config.xml
Solution 2:
I prefer curl....
curl "http://localhost:18080/jenkins/job/npm-package-aaa/config.xml" -si --data-binary "$XML" -H "Content-Type: text/xml"