Skip to content

Commit

Permalink
Add log to Artifact when failure
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan committed Sep 22, 2020
1 parent 3d050ad commit 9793fd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ build_script:
- cmd: >-
cd c:\project\mediaportal\build\
REM "%ProgramFiles(x86)%\NSIS\makensis.exe" "..\Tools\InstallationScripts\DeployToolUnPacker-x64.nsi" >> BuildFullInstaller.log && type BuildFullInstaller.log
"%ProgramFiles(x86)%\NSIS\makensis.exe" "..\Tools\InstallationScripts\DeployToolUnPacker-x64.nsi" >> BuildFullInstaller.log
IF %ERRORLEVEL% NEQ 0 TYPE BuildFullInstaller.log
"%ProgramFiles(x86)%\NSIS\makensis.exe" "..\Tools\InstallationScripts\DeployToolUnPacker-x64.nsi" > BuildFullInstaller.log
7z a ..\Release\MediaPortalSetup_%APPVEYOR_BUILD_VERSION%.%APPVEYOR_REPO_COMMIT%.zip ..\Release\MediaPortalSetup_*.exe
Expand All @@ -32,3 +28,5 @@ artifacts:
name: Mediaportal Installer (Zip)
- path: Build\BuildFullInstaller.zip
name: Mediaportal Build Log
on_failure:
- ps: Push-AppveyorArtifact BuildFullInstaller.log -FileName BuildError.log

0 comments on commit 9793fd4

Please sign in to comment.