It's all about the answers!

Ask a question

Expected code 200 OK but received code 201 with message: Created

Sanjay Patel (121) | asked Oct 01 '13, 12:58 p.m.
 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": Error submitting build to Hudson/Jenkins. Expected code 200 OK but received code 201 with message: Created
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(
at $Proxy510.executeTask(Unknown Source)

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?

Krzysztof Kaźmierczyk commented 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 commented 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.

2 answers

permanent link
Zeeshan Choudhry (6541612) | answered Oct 02 '13, 12:24 p.m.
It looks like job is getting created , What is the complete log looks like? Can you please share?
Can you also get the engine system logs as well to check what is really happening at the jenkins.

permanent link
Gustavo Reis (13927) | answered Dec 17 '13, 7:38 p.m.
It seems that Jenkins changed the response for successful created jobs since version 1.519.

Either downgrade Jenkins to 1.518 or update RTC for 4.0.3.

Your answer

Register or to post your answer.