Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket-pipelines.yml will not let me append to file Edited

I am getting "Expected either 'a string' or 'a pipe'" inside the following bitbucket-pipelines.yml file.


image: ubuntu:18.04

- step:
name: "Build"
- echo "version: 0.0" >> appspec.yml
- echo 'os: linux' >> appspec.yml
- echo 'files: $CRON_PATH' >> appspec.yml
- apt-get update && apt-get install -yq --no-install-recommends apt-utils make unzip curl git build-essential nodejs npm libapache2-mod-php7.2 php7.2-cli php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml libpng-dev openssl ca-certificates zip
- npm install && npm run production
- apt-get clean && rm -rf /var/lib/apt/lists/*
- curl -sS | php -- --install-dir=/usr/local/bin --filename=composer
- composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
- zip -r ./

The validator is complaining about the `echo` statements.  I don't understand what I am doing wrong.   I have tried with and without touching the file first.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,766 views 64 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you