It's all about the answers!

Ask a question

Failed to complete build. Build necessary = "true"


Thomas Tardy (3143) | asked Apr 26 '08, 8:37 a.m.
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
buildNotNecessary
but I always get the error
Failed to complete build. Build necessary = "true"
. If I just call the CompleteBuildTask with no
buildNotNecessary
attribute, 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



permanent link
Don Weinand (7851) | answered Apr 27 '08, 11:18 a.m.
JAZZ DEVELOPER
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,

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 buildNotNecessary
but I always get the error
Failed to complete
build. Build necessary = "true"
. If I
just call the CompleteBuildTask with no
buildNotNecessary
attribute,
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

Your answer


Register or to post 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.