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

Bitbucket Pipelines "command not found"

Ben Joostens February 13, 2018

Pipelines is suddenly failing, even with configurations that used to work. I've tried several images, different commands but they all result in the same.

I've reduced my configuration to rule out any other issues to the following:

image: php:7.2-cli

pipelines:
  default:
    - step:
        script:
          - php -v

 

Which results in:

php -v
bash: php: command not found

It throws the same error on commands like "ls" or "which".

What's going on?

1 answer

1 accepted

2 votes
Answer accepted
Ben Joostens February 13, 2018

Just as I posted this it struck me that I added a "PATH" env variable..., whoops!

anmsid March 23, 2020

Phew, took me hours to get to this answer

Thanks a lot!

Like Diego Dominguez Alvarez likes this
Sercan Ş. October 17, 2020

I could not understand the answer guys :/

Like Tharinda likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events