Thanks *so* much. Your suggestion did indeed work. Here is what I did -- dlethin% curl -d "script=println new Date()" -X POST http://user:token@host/jenkins/scriptText Fri Mar 22 12:39:06 PDT 2013
I never new about scriptText before, and even now after hearing it, I can't seem to easily find reference to it. Is it documented somewhere? I would prefer to use the jenkins cli approach, but I'm going to have to spend some time troubleshooting why its not working. I suspect apache layer in front of jenkins is interfering somehow. Thanks again. Doug On Friday, March 22, 2013 3:10:51 PM UTC-4, ogondza wrote: > > Hi, > > I managed to do the same thing using java -jar jenkins-cli.jar -s > http://localhost:8080/ groovy. > > Using to post method it seems you must use the parameter name like so: > curl -d "script=<your_script_here>" http://localhost:8080/script. If you > do not want the result to be html-decorated send your request to > scriptText. So curl -d "script=<your_script_here>" > http://localhost:8080/scriptText is probably what you want. > > -- > oliver > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
