Failed to complete build. Build necessary = "true"
Hi all,
I stop my build if there are no changes in the SVN repository. To do this, I'm using the CompleteBuildTask. I thought, that I can use the attribute buildNotNecessarybut I always get the error Failed to complete build. Build necessary = "true". If I just call the CompleteBuildTask with no buildNotNecessaryattribute, it's working. Whats the idea of the buildNotNecessary? When can it be used and why I can't use it in my build. Thanks for your help! Regards, Thomas |
One answer
Can you pass verbose="true" to that task so we can see a call stack if there
is one? Also...are you starting that build with StartBuildTask and controlling it's complete lifecycle? That CompleteBuildTask is designed to be used if you are controling the entire lifecycle of of the build using the lifecycle(getNextBuildRequestTask, startBuildTask, etc) related ant tasks through some process controlling the build loop. If the Jazz Build Engine is in control of the lifecycle you should not be completing the build with that task. The engine has control of the cycle and will progress the build through the lifecycle as it sees fit. If you complete the build and pass in the "buildNotNecessary=true" that will essentially delete the build from the repository causing the engine to no longer be able to interact with it causing a failure. Although it's not recommend that the build be manually completed when the engine is in control of the lifecycle it is currently tolerant of that situation which is probably why there is no error when you simply complete it without making it not necessary. There is no guarantee of this behavior however in the future. Don Weinand Jazz Team Build "wibbo" <ttar> wrote in message news:fuv7n8$45e$1@localhost.localdomain... Hi all, |
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.