My reverse promotion build is failing the first time, but succeeds subsequent times. Why does this happen?
I run my reverse promotion build and get the following exception in the build:
com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0098I The "com.ibm.team.enterprise.promotion.common.IPromotionService{/ccm/service/com.ibm.team.enterprise.promotion.common.IPromotionService}" service failed. The server returned the HTTP error 500 with error text "Internal Server Error".
* at com.ibm.team.repository.transport.client.ClientHttpUtil.throwHttpClientError(ClientHttpUtil.java:1334)
* at com.ibm.team.repository.transport.client.ClientHttpUtil.throwHttpClientError(ClientHttpUtil.java:1334)
However the second run and beyond appear to run correctly. Why does this happen?
Accepted answer
The problem can be caused by a timeout to the ccm server. This causes the buildmap to not get finalized causing the failure. There is a build property that will prevent the timeout. The build property is: team.enterprise.promotion.connectionTimeoutOverride. Setting this value to 0 will cause it to never timeout.