Why is waitForTeamBuild for a child build waiting forever?
There are 3 build definitions:
"parent build" "child build 1" and "child build 2" , then I want to run the child builds within the parent build sequentially. I am using requestTeamBuild task to request "child build 1" then waitForTeamBuild to wait for "child build 1" completed as follows: However, the build request "child build 1" will be in a JBE queue but it never proceed. It seems "parenet build" is waiting forever. Why? References: https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.build.doc/topics/r_requestBuild.html https://jazz.net/help-dev/clm/topic/com.ibm.team.build.doc/topics/r_waitforteambuild.html |
Accepted answer
if you were running a single build engine, the both requests will go to the same build engine therefore the parent build is still running and the child build in the same build engine queue to wait so it never start because the parent build is waiting for the child build completed. It's deadlocked.
You need add one more build engine that supports these child builds. When you specify the new build engine in the child build definition, it will works as it is expected.
Note: if you run multiple Jazz Build Engine instances on the same machine, For more information, see Running multiple JBE processes.
Yasuyuki Tominaga selected this answer as the correct answer
|
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.