Forums

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

Why I am getting this error while configuring pipelines? bash: vendor/bin/phpunit: Permission denied

Sutheesh M Shivaprasad
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!
July 25, 2018

I am getting this error while running pipelines in bitbucket. please help me out to find a solution. 

yml file is like,

image: php:7.1.1
pipelines:

default:

- step:

caches:

- composer script:

- apt-get update && apt-get install -y unzip

- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

- composer install

- vendor/bin/phpunit

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2018

Hi Sutheesh,

Can you check what the permissions on the file are?

ls -l vendor/bin/phpunit

Perhaps it hasn't been marked as runnable, and needs to modified to do-so

chmod +x vendor/bin/phpunit

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events