Error in PushArtifact command in build script not detected as error, does not stop build

Scott's Avatar


03 Feb, 2015 07:25 PM

I have a manual build script that pushes artifacts. When it errors, the errors are not detected and the build script just keeps plugging along. I would expect any errors in the build script to stop the build.

Example Script:
msbuild API\API.csproj /t:Package / /p:Configuration=Release
appveyor PushArtifact
msbuild Site\Site.csproj /t:Package / /p:Configuration=Release

[Build output excluded]
appveyor PushArtifact [Note: I did not fully qualify the location]
Error pushing artifact: File not found: C:\projects\
[Note, the build does not stop here, it just keeps plugging on]
msbuild Site\Site.csproj /t:Package /
Microsoft (R) Build Engine version 12.0.31101.0
[Microsoft .NET Framework, version 4.0.30319.34209]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2/3/2015 7:12:47 PM.

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Feb, 2015 07:43 PM

    Feodor Fitsner's Avatar

    Good catch - will fix that!

  2. Support Staff 2 Posted by Feodor Fitsner on 05 Feb, 2015 05:20 AM

    Feodor Fitsner's Avatar

    It's been fixed - now it exists with non-zero code if there are any errors.

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac


22 Aug, 2019 08:13 PM
21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 05:56 AM