drscream / bamboozled-ruby-plugin

Bamboozled Ruby Plugin for Atlassian Bamboo continuous integration/continuous deployment
Other
24 stars 9 forks source link

db:migrate not working on rake #31

Open bpdarlyn opened 6 years ago

bpdarlyn commented 6 years ago

I need make a migration on a task, but looking the errors is because the comand is executed on other directory for example :

Starting task 'Rake' of type 'com.alienfast.bamboozled.ruby.bamboozled-ruby-plugin:task.rake'
Beginning to execute external process for build 'invenrory-ci - Test-Inventory - Default Job #16 (IN-TES-JOB1-16)'\n ... running command line: \n/home/bpdarlyn/.rvm/rubies/ruby-2.3.1/bin/ruby /home/bpdarlyn/.rvm/gems/ruby-2.3.1@inventory-ci/bin/bundle exec rake db:migrate\n ... in: /home/bpdarlyn/bamboo/xml-data/build-dir/IN-TES-JOB1\
Could not locate Gemfile or .bundle/ directory
simple  06-Nov-2017 22:32:13    Failing task since return code of [/home/bpdarlyn/.rvm/rubies/ruby-2.3.1/bin/ruby /home/bpdarlyn/.rvm/gems/ruby-2.3.1@inventory-ci/bin/bundle exec rake db:migrate] was 10 while expected 0

now It command want execute on directory /home/bpdarlyn/bamboo/xml-data/build-dir/IN-TES-JOB1\ bundle exec rake db:migrate but her there is not project rails obviously

I want than execute it command on other directory because there is not a project rails on builder directory my project rails is on : /home/bpdarlyn/projects/inventory-ci rake db:migrate

drscream commented 6 years ago

Wouldn't it be possible to specify the Rakefile in the Rake task it self or the Working directory?