You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/07/06 22:20:45 UTC

[GitHub] [cordova-windows] janpio opened a new issue #353: Build command does not report correct status code

janpio opened a new issue #353: Build command does not report correct status code
URL: https://github.com/apache/cordova-windows/issues/353
 
 
   `cordova build windows` and `cordova run windows` do not report an error even when the build clearly failed:
   
   ```
   ...
   Running command: reg query HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows /s /v InstallationFolder /reg:32
   Command finished with error code 0: reg query,HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows,/s,/v,InstallationFolder,/reg:32
   buildProject spawn: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild [ 'C:\\Users\\travis\\build\\janpio\\cordova-windows-ci\\platforms\\windows\\CordovaApp.Windows10.jsproj',
     '/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal',
     '/nologo',
     '/p:Configuration=debug',
     '/p:Platform=anycpu',
     '/p:AppxBundle=Never' ] { stdio: 'inherit' }
   Running command: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild C:\Users\travis\build\janpio\cordova-windows-ci\platforms\windows\CordovaApp.Windows10.jsproj /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=debug /p:Platform=anycpu /p:AppxBundle=Never
   Command finished with error code 1: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild C:\Users\travis\build\janpio\cordova-windows-ci\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=anycpu,/p:AppxBundle=Never
   CordovaError: No valid MSBuild was detected for the selected target: Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild: Command failed with exit code 1
       at C:\Users\travis\build\janpio\cordova-windows-ci\platforms\windows\cordova\lib\build.js:83:29
       at _rejected (C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:864:24)
       at C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:890:30
       at Promise.when (C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:1142:31)
       at Promise.promise.promiseDispatch (C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:808:41)
       at C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:624:44
       at runSingle (C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:137:13)
       at flush (C:\Users\travis\build\janpio\cordova-windows-ci\node_modules\q\q.js:125:13)
       at process._tickCallback (internal/process/next_tick.js:61:11)
   The command "cordova build windows --verbose" exited with 0.
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org