When Build Chain Suceeds or Fails

I would like to copy all generated artifacts from a build chain to another folder, but only after that build chain sucessfully builds.

So if I have solution A, B and C
A depends on B depends on C

A build sucessfully
B builds successfully
C builds successfully
Then all artifacts from A,B,and C are copied to folder X

A builds successfully
B build successfully
C fails
Then I do nothing.

The projects I am building are .Net (MSBuild) and use Perforce for source control.

Thanks,

Scott Knowles
Alyeska Investment Group

1 comment
Comment actions Permalink

You can create a build configuration D and configure dependency trigger in this configuration to depend on A. Then when a successful build of A appears D will be triggered. And A will only be successful if all builds it depend on are successful (this is true if you are using snapshot dependencies).

0

Please sign in to leave a comment.