Syntax error in Ubuntu image

armandopfz's Avatar

armandopfz

10 May, 2019 10:24 PM

Hi,

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

environment:
  github_auth_token:
    secure: I5D/PCO71V3vJR+jrCM0Be61qcgqsn2mNG0xh02xUmQFiJJopiUxYciC3S+Kj9ub

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

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

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

artifacts:
  - path: amqp_filter_exchange.zip
    name: plugin
    type: file

deploy:
  tag: $(APPVEYOR_REPO_TAG_NAME)
  provider: GitHub
  auth_token:
    secure: $Env:github_auth_token
  artifact: /amqp_filter_exchange\.zip/
  draft: false
  prerelease: false
  on:
    branch: master
    APPVEYOR_REPO_TAG: true

What I'm doing wrong ?

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

    armandopfz's Avatar

    tag: $(APPVEYOR_REPO_TAG_NAME)

    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 compile.sh) 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

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