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

How to use ruby docker image for Bitbucket Pipeline?

tusharrjadhav January 23, 2018

I am facing issue while using pipeline for ruby script. I have file the issue in bitbucket also, Issue #15542 https://bitbucket.org/site/master/issues/15542/pipeline-script-bundle-install-could-not1

Kindly find the pipeline configuration. getting error “Could not locate Gemfile”.

image: ruby:2.4.0 pipelines: default: - step: script: - ruby - v - bundle install

Also asked question of community also https://community.developer.atlassian.com/t/how-to-use-this-ruby-docker-image/13806

 

Kindly help me with this issue,  

1 answer

0 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

Hi Tushar,

Do you have a Gemfile in the root directory of your repository?

If not, you'll need to change directory and then run your installation command. For example:

image: ruby:2.4.0
pipelines:
  default:
    - step:
        script:
          - ruby - v
- cd app - bundle install

Hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events