The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 23, 2020

Phew, took me hours to get to this answer

Thanks a lot!

Like Diego Dominguez Alvarez likes this
Sercan Ş.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2020

I could not understand the answer guys :/

Like Tharinda likes this
TAGS
AUG Leaders

Atlassian Community Events