tag:help.appveyor.com,2012-11-13:/discussions/problems/23683-command-exited-with-code-255AppVeyor: Discussion 2019-05-20T21:57:05Ztag:help.appveyor.com,2012-11-13:Comment/472787882019-05-20T14:31:25Z2019-05-20T14:31:25ZCommand exited with code 255<div><p>I get this weird <code>Command exited with code 255</code> error on <a href="https://ci.appveyor.com/project/ionelmc/python-hunter/builds/24671094/job/w0qo07hskwu4b9uf">https://ci.appveyor.com/project/ionelmc/python-hunter/builds/246710...</a></p>
<p>But I can't figure out the cause. The batch script seems fine to me. I've tried adding <code>echo on</code> but the error still doesn't make sense :/</p></div>Ionel Cristian Mărieștag:help.appveyor.com,2012-11-13:Comment/472787882019-05-20T17:42:29Z2019-05-20T17:42:29ZCommand exited with code 255<div><p>Which yaml config file is being used for this project (i see you have multiple)?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/472787882019-05-20T17:44:45Z2019-05-20T17:44:45ZCommand exited with code 255<div><p>This was used for the build in question: <a href="https://github.com/ionelmc/python-hunter/blob/2c51f0da0754f69c8cb8dbddb2d8340a3919f777/appveyor.yml">https://github.com/ionelmc/python-hunter/blob/2c51f0da0754f69c8cb8d...</a></p></div>Ionel Cristian Mărieștag:help.appveyor.com,2012-11-13:Comment/472787882019-05-20T21:24:57Z2019-05-20T21:24:57ZCommand exited with code 255<div><p>Does it make a difference if you change the syntax to exactly match the following?</p>
<pre>
<code>on_success:
- cmd: >-
ECHO ON
SETLOCAL EnableDelayedExpansion
IF DEFINED WHEEL_PATH (
%PYTHON_HOME%\Scripts\twine check %WHEEL_PATH%/*.whl
%PYTHON_HOME%\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing %WHEEL_PATH%/*.whl
) ELSE (
ECHO No wheels to upload.
)</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/472787882019-05-20T21:57:03Z2019-05-20T21:57:03ZCommand exited with code 255<div><p>I doubt. But I give up on this batch nonsense - I have replaced that with powershell. Ugly but it works.</p></div>Ionel Cristian Mărieș