Open MichaelSp opened 10 years ago
The task is not executed in the correct directory. PWD is /opt/atlassian, which is the home dir of the user.
14-Oct-2013 11:07:49 Starting task 'Capistrano' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' 14-Oct-2013 11:07:49 Beginning to execute external process for build 'Deployment of 'release-2' on 'Staging'' ... running command line: /bin/sh /opt/atlassian/bamboo/temp/1179649-1277953-3276805-ScriptBuildTask-442274210517999102.sh ... in: /opt/atlassian/bamboo_home/xml-data/build-dir/131073/1179649-1277953 ... using extra environment variables: bamboo_planRepository_1_branch=master bamboo_planRepository_1_repositoryUrl=git@repo:path/ci-test.git bamboo_planRepository_repositoryUrl=git@repo:path/ci-test.git bamboo_planRepository_type=git bamboo_shortPlanName=CI bamboo_planName=CI-Test - CI bamboo_planKey=CIT-CI bamboo_planRepository_revision=d42f9c621978122dc81bab39229b4bed4d3b8365 bamboo_buildResultKey=CIT-CI-14 bamboo_planRepository_1_revision=d42f9c621978122dc81bab39229b4bed4d3b8365 bamboo_planRepository_1_type=git bamboo_planRepository_1_branchName=master bamboo_planRepository_1_name=Git repo:path bamboo_planRepository_1_username= bamboo_buildNumber=14 bamboo_planRepository_name=Git repo:path/ci-test bamboo_planRepository_branch=master bamboo_shortPlanKey=CI bamboo_planRepository_username= bamboo_planRepository_branchName=master 14-Oct-2013 11:07:49 /opt/atlassian/bamboo_home/xml-data/build-dir/131073/1179649-1277953 14-Oct-2013 11:07:49 /opt/atlassian/.rvm/gems/ruby-2.0.0-p247@global/bin/bundle 14-Oct-2013 11:07:49 Could not locate Gemfile 14-Oct-2013 11:07:49 Failing task since return code of [/bin/sh /opt/atlassian/bamboo/temp/1179649-1277953-3276805-ScriptBuildTask-442274210517999102.sh] was 10 while expected 0 14-Oct-2013 11:07:49 Finished task 'Capistrano'
Wow that looks odd, I am intrigued to find out if bamboo is setting the current working directory in this case.
The task is not executed in the correct directory. PWD is /opt/atlassian, which is the home dir of the user.