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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,227 views 0 3
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