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: 

pipelines bitbucket can not execute composer install

Deleted user
April 9, 2019

Hello I get this error in my pipelines bitbucket when I build my php code:

Do not run Composer as root/super user! See https://getcomposer.org/root for detailsComposer could not find a composer.json file in /opt/atlassian/pipelines/agent/buildTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

 

Any help please

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Jade Krafsig
May 15, 2019

Do you have a composer.json file?

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2019

Hi Omarlo,

Can you try using the "run-as-user" property. This will allow you to be a non-root user in Pipelines.

For example

image:
name: <your image name>
run-as-user: 1000

# Your normal pipeline below
pipelines:
default:
- step:
script:
- echo Hello

Thanks,

Phil

TAGS
AUG Leaders

Atlassian Community Events