Step running when build status not successful

I have the following build steps defined. epm.web and epm.services are both simple custom runners.

Code First Migration
Command Line
Command: migrate.exe epm.dal.codefirst "/connectionString:%connectionString%" /connectionProviderName:System.Data.SqlClient /startupConfigurationFile:web.config
Execute: Only if build status is successful
Edit
epm.web
DeployWeb

Execute: Only if build status is successful
Edit
epm.services
DeployService

Execute: Only if build status is successful
Edit
Update configs
ClickOnce

Execute: Only if build status is successful
Edit
Re-sign Manifest
Powershell
Powershell x86 <script>
Execute: Only if build status is successful
Edit
Upload ClickOnce
Command Line
Command: %azcopy% uploader %blobUrl%/%marketDeployContainer% /destkey:%blobKey% /s /xo /y
Execute: Only if build status is successful


When the first step fails, epm.web step runs when it shouldn't. All the other steps correctly are skipped. How can I make all steps skip if an error message is detected? Here's my log:

[14:51:34]Step 1/6: Code First Migration (Command Line) (32s)
[14:51:34][Step 1/6] Starting:  C:\Windows\system32\cmd.exe /c migrate.exe epm.dal.codefirst  "/connectionString:Data Source=xxxxx.database.windows.net;Initial  Catalog=EPM-CI;User ID=xxxxx;Password=xxxxx"  /connectionProviderName:System.Data.SqlClient  /startupConfigurationFile:web.config
[14:51:34][Step 1/6] in directory: C:\TeamCity\buildAgent\work\6634c71790fe3b8b\migrate

[14:52:06]Step 2/6: epm.web (DeployWeb) (12s)
[14:52:06]Step 1/1: Command Line (12s)

[14:52:18]Step 3/6: epm.services (DeployService)
[14:52:18]Build step epm.services (DeployService) is skipped because the build is failing
[14:52:18]Step 4/6: Update configs (ClickOnce)
[14:52:18]Build step Update configs (ClickOnce) is skipped because the build is failing
[14:52:18]Step 5/6: Re-sign Manifest (Powershell)
[14:52:18]Build step Re-sign Manifest (Powershell) is skipped because the build is failing
[14:52:18]Step 6/6: Upload ClickOnce (Command Line)
[14:52:18]Build step Upload ClickOnce (Command Line) is skipped because the build is failing
[14:52:18]Publishing internal artifacts
[14:52:18]Publishing artifacts
[14:52:19]Build failure condition: Error message detected
[14:52:19]Build  failure condition cause message: ERROR: An error occurred while getting  provider information from the database. This can be caused by Entity  Framework using an incorrect connection string. Check the inner  exceptions for details and ensure that the connection string is  correct. (show original message)
[14:52:19]Build finished
3 comments
Comment actions Permalink

If I move epm.services before epm.web, then epm.services incorrectly runs, and epm.web doesn't r
un.

0
Comment actions Permalink

I created a dummy step which is now the one that gets incorrectly run, as a workaround.

0
Comment actions Permalink

Hi,

It looks like this issue http://youtrack.jetbrains.com/issue/TW-34737. Please watch and vote.

0

Please sign in to leave a comment.