The syntax of the command is incorrect

Oleksiy Kononenko's Avatar

Oleksiy Kononenko

21 Sep, 2020 08:57 PM

Dear support,

We recently started to have problems with our master builds, they all fail now
with the following error: "The syntax of the command is incorrect. Command exited with code 255",
see https://ci.appveyor.com/project/h2oops/datatable/builds/35326665 for example.

What is strange here, is that all the PR and release builds are green, and our appveyor.yml file
was successfully validated with your "Validate YAML configuration" tool.

The appveyor.yml we are using is here https://github.com/h2oai/datatable/blob/master/appveyor.yml
and the change we found is causing the problems is using "APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH"
variable on the master build:
https://github.com/h2oai/datatable/commit/1c3372b2fd58f1c8e2108a9a7d1252055afee9d2

Before this change the build is green, after this change we get the above error.
Checking if this variable is defined before used doesn't help.

We would appreciate any help on this concern. Thanks a lot in advance!

Oleksiy

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Sep, 2020 12:57 AM

    Feodor Fitsner's Avatar

    Hi Oleksiy,

    I've noticed you changed the config, so your builds are green again? Anyway, I'd recommend trying PowerShell for evaluating environment variables, for example (pseudo-code):

    install:
    - ps: <check env var values and set a new "result" environment variable>
    - cmd: if "%result%"=="something" command
    

    thus Windows batch cmd part is simple.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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