Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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
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

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 26 '08, 8:37 a.m.

Question was seen: 7,147 times

Last updated: Apr 26 '08, 8:37 a.m.

Confirmation Cancel Confirm