Jenkins build : Expected code 200 OK but received code 403 with message: Forbidden
Hello,
I am using Jenkins 2.235.1 & RTC server is 6.0.6.1 IFIX 010. I am triggering a build in build definition from Client. I am getting below error. But works fine If build is triggered from Jenkins directly. What could be the problem ?
java.io.IOException: Error submitting build to Hudson/Jenkins. Expected code 200 OK but received code 403 with message: Forbidden
|
Accepted answer
2 other answers
Ralph Schoon (63.3k●3●36●46)
| answered Jul 08 '20, 7:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
When RTC requests a build, it has to communicate to the Jenkins Server. The configuration for that is likely incorrect. It was correct, but no more. E.g. the user used to talk to Jenkins or the password is changed.
The Jenkins integration needs to be configured in a special build engine definition. And in the Build definition there is additional configuration. Check that configurations and test that RTC can talk to Jenkins.
|
Hi Dinesh,
Disabling CSRF check is not a recommended practice right? We did try that and it worked. We reversed it back. Is there any other way we can avoid this CSRF issue between Jenkins and RTC?
We are able to successfully trigger build from Jenkins. But when we try the other way i.e from RTC, it is throwing 403 forbidden error "Caused by: com.ibm.team.build.common.TeamBuildException: Error posting XML document to Hudson/Jenkins site. Received code 403 with message: Forbidden".
Thanks and Regards,
Karthikeyan P
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.