Help Needed: Unable to get Remote Build Trigger working

31 views
Skip to first unread message

Vinoth raj

unread,
Mar 19, 2015, 2:06:34 PM3/19/15
to jenkins...@googlegroups.com
I need to use curl to remotely trigger build for a project.

Jenkins ver. 1.580.3
Following setting is done:
In Configure Global Security section:
- Jenkins' own user database set is enabled
- Project based matrix authorization strategy is enabled
There is one user who has all rights enabled here.

Project settings:
Trigger builds remotely is enabled (gave token a value '123abc')
Also, API token for the user is retrieved from user configure page.

Tried different versions of post from curl. 

curl -user <username:apiToken> http://[jenkins:port]/job/projectname/build?token=123abc

I always get:
Authentication required
You are authenticated as: anonymous
Groups that you are in:
Permission you need to have (but didn't): hudson.model.Hudson.Read


Not sure what is causing this authentication fail.

Matt Stave

unread,
Apr 29, 2015, 10:38:02 AM4/29/15
to jenkins...@googlegroups.com
You need to curl -X POST
Reply all
Reply to author
Forward
0 new messages