Expected code 200 OK but received code 201 with message: Created
I have build definition and build engine configured to reference Jenkins server job. When I request a build from RTC I see two entries for the build. The first one always fails with following error:
Error starting Hudson/Jenkins build for job "flexcatGA1":
java.io.IOException: Error submitting build to Hudson/Jenkins. Expected code 200 OK but received code 201 with message: Created
at com.ibm.rational.hudson.team.internal.service.HudsonBuildLoopRunnable.startHudsonBuild(HudsonBuildLoopRunnable.java:283)
at com.ibm.rational.hudson.team.internal.service.HudsonBuildLoopRunnable.processRequest(HudsonBuildLoopRunnable.java:141)
at com.ibm.rational.hudson.team.internal.service.HudsonBuildLoopRunnable.run(HudsonBuildLoopRunnable.java:107)
at com.ibm.rational.hudson.team.internal.service.HudsonBuildLoopScheduledTask.runTask(HudsonBuildLoopScheduledTask.java:43)
at com.ibm.team.repository.service.async.AbstractAutoScheduledTask.executeTask(AbstractAutoScheduledTask.java:88)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy510.executeTask(Unknown Source)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:153)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:116)
at java.lang.Thread.run(Thread.java:738)
Some where in the forum I saw that this is a bug and there was a workaround listed to modify permissions for anonymus user. But that did not help. I have two questions:
1. Why does it generate two entries?
2. Is this a bug? Any workaround?
Comments
Krzysztof Kaźmierczyk
Oct 02 '13, 3:02 a.m.Hi Sanjay,
What is your RTC version you are using? Also had it been working for you for any previous version?
Sanjay Patel
Oct 02 '13, 9:40 a.m.My RTC client version is 4.0.2. I can't upgrade to any newer version other wise my client will be incompatible because the server is not at the newer version.
This is the first time I am trying to reference Jenkins build definition and build engine from Jenkins job definition. All this is brand new and I am doing this first time.