Ralf de Kleine
Ralf de Kleine

Reputation: 11734

How to check if Build failed in Finally

I've got a BuildDefinition file, in the Finally part I deploy the application (B in image) using a console app due to the complexity of the deploy.

But when the build fails the application shouldn't be deployed.

So I thought use BuildDetail.Status (used in A) but the build isn't done yet it shows InProgress.

The question is, how do I stop the deployment from starting when the build fails? (possibly in the If (B).

Part of builddefinition

Upvotes: 2

Views: 272

Answers (1)

Ralf de Kleine
Ralf de Kleine

Reputation: 11734

Ok figured it out, should've used BuildDetail.CompilationStatus

Upvotes: 1

Related Questions