On Thursday, 25 June 2015 12:03:30 UTC+1, Anthony Green wrote:
>
> Can it be done via the CLI or with curl as a POST request? 
>

I've experimented with a POST request 

curl -X POST -d 
'.useSecurity=on&slaveAgentPort.type=fixed&value=2230&core%3Aapply=true&json=%7B%22useSecurity%22%3A+%7B%22slaveAgentPort%22%3A+%7B%22type%22%3A+%22fixed%22%2C+%22value%22%3A+%222230%22%7D%7D%2C+%22core%3Aapply%22%3A+%22true%22%7D'
 
--header 'Content-Type: application/x-www-form-urlencoded' 
http://localhost:8080//configureSecurity/configure 

This does set the port to a fixed number

Don't know if there's a better way 

-- 
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/c6447d94-34a1-41a1-9a5b-f4008e04195b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to