Syntax error in Ubuntu image

armandopfz's Avatar


10 May, 2019 10:24 PM


I have a build that ends with the following message:

"GitHub" deployment has been skipped as environment variable has not matched ("APPVEYOR_REPO_TAG" is "false", should be "true")
Build completed

Then I make:
git tag v1.0.1-test
git push v1.0.1-test

And now the build fail with the following error:

/bin/sh: 1: Syntax error: "(" unexpected (expecting ")")
make: *** No rule to make target 'dist'. Stop.
Command exited with code 2
Build failed

My appveyor file:

image: ubuntu

    secure: I5D/PCO71V3vJR+jrCM0Be61qcgqsn2mNG0xh02xUmQFiJJopiUxYciC3S+Kj9ub

  - sh: docker build --tag private/rabbitmq-public-umbrella --file ./Dockerfile ./context/

  - sh: docker run --rm --mount "type=bind,source=/home/appveyor/projects/amqp-filter-exchange,target=/var/opt/amqp-filter-exchange" private/rabbitmq-public-umbrella

  - sh: 7z a /home/appveyor/projects/amqp-filter-exchange/plugins/amqp_filter_exchange*.ez
  - sh: 7z a /home/appveyor/projects/amqp-filter-exchange/plugins/amqp_filter*.ez
  - sh: 7z a /home/appveyor/projects/amqp-filter-exchange/plugins/action_reader*.ez

  - path:
    name: plugin
    type: file

  provider: GitHub
    secure: $Env:github_auth_token
  artifact: /amqp_filter_exchange\.zip/
  draft: false
  prerelease: false
    branch: master

What I'm doing wrong ?

  1. 1 Posted by armandopfz on 10 May, 2019 10:37 PM

    armandopfz's Avatar


    If I comment the previews line and I push the tag, I have the same error anyway:

    Running "build_script" scripts
    docker run --rm --mount "type=bind,source=/home/appveyor/projects/amqp-filter-exchange,target=/var/opt/amqp-filter-exchange" private/rabbitmq-public-umbrella
    /bin/sh: 1: Syntax error: "(" unexpected (expecting ")")
    make: *** No rule to make target 'dist'. Stop.
    Command exited with code 2
    Build failed

  2. Support Staff 2 Posted by Ilya Finkelshte... on 14 May, 2019 01:15 AM

    Ilya Finkelshteyn's Avatar

    This is indeed weird. I forked your repo and was able to reproduce it by simple creating a tag, without any other changes to the code. I added -d to make command (inside to get at verbose output. Please see comparison of branch build output (left) and tag build output (right) attached. Note that for the tag build, AppVeyor sets branch name to the tag name and checks out tag instead of commit SHA (see clone steps). Not sure how this could affect your make build. Does detailed log rings some bells?

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


? 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