Unable to trigger a build with startTeamBuild
Hello,
I've creating two dependent Build Definitions.
My first definition contains a trigger for the second definition. My requirement is to start the second definition on a dedicated Build Engine.
Therefore I decided to use the ANT Task startTeamBuild.
So my first definition contains the following call:
<startTeamBuild repositoryAddress="${repositoryAddress}"
buildDefinitionId="main_definition"
engineId="someEngine "
resultUUIDProperty="buildResultUUID"
label="CERT for nb2cm007"
autoComplete="false"
verbose="true"
userId="${BuildUser}"
passwordFile="${PasswordFile}"/>
The Build engine "someEngine" is only used for the "main_defintion". When I start now the first definition,
The main_definition is started one someEngine but it always ends in Abandoned state.
Error on from JBE:
The Build log contains the following: When I do the same with requestTeamBuild it works. But there I cannot handover a engineID.
Has anyone an idea whats wrong here?
Regards,
Marco
|
One answer
The autocomplete is set to false, so the build will require an explicit buildComplete at the end of the build to actually close out the build, otherwise it will stay in the "in progress" state. When you use the requestBuild, it will put itself into the build queue and hand off the lifecycle management of the build to the JBE, which usually closes itself out. So my guess is that you need autocomplete = true, or make sure that the build will always finish with a completeBuild.
~Spencer
Comments
Marco Schett
commented Dec 15 '14, 4:04 a.m.
Hi Spencer,
thanks for the answer.
When I set autocomplete=true and add then as additional ANT parameters, my abandoned problem is gone. The main_definition is now started on the right build engine.
But now the next problem occurs :-(
The main_definition runs about 800ms and reports success afterwards. But in reality, nothing is executed.
When I have a look in the build result, then the "Contribution Summary" section of the build result is empty.
Do you have another advise for me?
Regards,
Marco |
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.