Re: Jenkins API resulting in HTTP ERROR 404

2018-03-28 Thread 'Jenkins User' via Jenkins Users
FYI, this issue was due to restricted permission for the user. After relaxing the permission API call worked as expected. Thanks! On Wednesday, March 28, 2018 at 4:55:55 PM UTC-5, Jenkins User wrote: > > Hi All, > > I'm using Jenkins 2.89.4. > > I'm making an API call using > > /usr/bin/curl -X

Jenkins API resulting in HTTP ERROR 404

2018-03-28 Thread 'Jenkins User' via Jenkins Users
Hi All, I'm using Jenkins 2.89.4. I'm making an API call using /usr/bin/curl -X GET -k --cookie `cat cookie.txt` https://JENKINS_URL/job/MYJOBNAME/lastCompletedBuild/api/xml/ --user usr:token But it is resulting in 404 error like below Error 404 Not Found HTTP ERROR 404 Problem