IMO the remote api of parameter build does not work if you enabled
authentication, there is no workaround especially you are using oauth2.

You can workaround it via Build Token Root plugin.

https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin


Kane

On Wed, Sep 16, 2015 at 1:30 AM, John Marks <johnma...@g.harvard.edu> wrote:

> I'm using the following linux command line to do a remote build using
> Jenkins version 1.613
>
> curl -X POST
> http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build
> --data token=gmasbuild
>
> What I get looks like a long HTML response that's expecting a log in
> followed by a stack trace which says it can't find method
> java.net.URLEncoder.encode().
>
> A similar command line (host, build name and token differ) run against
> version 1.541 works flawlessly. I've tried the above using both Java 1.7.
> and 1.8 with the same result.
>
> Can someone help me figure out what might be wrong?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/4dfba08f-9091-43fb-a5b1-aa63a6ec8224%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/4dfba08f-9091-43fb-a5b1-aa63a6ec8224%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAM%2BCGXRO5eJXoFnoWmhr-%3Dx90cESuzt4YqQBL5oXrL769N%2BDRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to