I am getting the following error when i try triggering a build using the 
following command:

curl http://jenkins_server:port/jenkins/job/job_name/build?token=harry

Output:
-----------------------------------------------------
<html><head><meta http-equiv='refresh' 
content='1;url=/jenkins/securityRealm/commenceLogin?from=%2Fjenkins%2Fjob%2Fjob_name%2Fbuild%3Ftoken%3Dharry'/><script>window.location.replace('/jenkins/securityRealm/commenceLogin?from=%2Fjenkins%2Fjob%2Fjob_name%2Fbuild%3Ftoken%3Dharry');</script></head><body
 
style='background-color:white; color:white;'>

Authentication required

<--
You are authenticated as: anonymous
Groups that you are in:

Permission you need to have (but didn't): hudson.model.Hudson.Read
 ... which is implied by: hudson.security.Permission.GenericRead
 ... which is implied by: hudson.model.Hudson.Administer
->

</body></html>
-----------------------------------------------------

I have admin rights and have also enabled 'Authentication Token'. I also 
have Build, Discover and Read rights on Job. I am using Jenkins 1.614.

I did check posts here but could not find anything that works for me. Tried 
few options such as
1) curl -X POST ...
2) curl -u user:API ... (Prints a long HTML page)


Please suggest.

-- 
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/4758ebae-a7c6-4b19-bb94-6cb114bf2fb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to