Hello, I'm using Jenkins 2.204.2 currently. I'm trying to download a view configuration, modify it and upload again.
If I look at the API for a view, http://ull105.net:9999/view/PHY_Master/api/ I get at the the bottom: "Fetch/Update config.xml To programmatically obtain config.xml, hit this URL <http://ull107.net:9999/view/PHY_Master/config.xml>. You can also POST an updated config.xml to the same URL to programmatically update the configuration of a view." Ok, so I do, "/usr/bin/wget --auth-no-challenge --no-proxy --http-user="me" --http-password="XXXX" http://ull105.net:9998/view/PHY_DevD-L/config.xml -O viewPHY_DevD-L.xml": ok => And get viewPHY_DevD-L.xml, which contains my view configuration. Now I want to upload the same file, as "new" view configuration (as a test): "/usr/bin/wget --auth-no-challenge --no-proxy -nv --http-user="me" --http-password="XXXX" http://ull105.net:9998/view/PHY_DevD-L/config.xml --post-file="viewPHY_DevD-L.xml" --header='Content-type:application/xml;charset=ISO-8859-1'" => But I get an "Error code: 500" [I have seen '500' as reaction to malformed xml passed to Jenkins; but I try to upload the file, I've just downloaded, so it should be fine) What do I do incorrectly ? Or is the documentation incorrect ? (I can download and upload the configuration of jobs, and tried to model the command according to this) Regards Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/572981b4-1089-470b-9182-4d2988986821%40googlegroups.com.
