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

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

Tyler Ives February 13, 2020

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

 

image: ubuntu:18.04

pipelines:
default:
- step:
name: "Build"
script:
- 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 https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install --no-ansi --no-dev --no-interaction --no-progress --optimize-autoloader
- zip -r application-fd.zip ./
artifacts:
- application-fd.zip

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
TAGS
AUG Leaders

Atlassian Community Events