[JIRA] (JENKINS-11641) when Rakefile is not in the default location, Rake working directory setting does not work
[ https://issues.jenkins-ci.org/browse/JENKINS-11641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=160425#comment-160425 ] Steve Eckhardt commented on JENKINS-11641: -- +1 on this issue. I love the above description, and wish all my users were so good at stating the issue clearly. Could the issue be upgraded from Minor? when Rakefile is not in the default location, Rake working directory setting does not work Key: JENKINS-11641 URL: https://issues.jenkins-ci.org/browse/JENKINS-11641 Project: Jenkins Issue Type: Bug Components: rake Affects Versions: current Environment: Windows Server 2008 R2 Standard 64-bit Jenkins 1.437 (installed via native package for windows) Jenkins Rake plugin 1.7.7 ruby 1.9.2p290 (2011-07-09) [i386-mingw32] rake 0.9.2.2 Reporter: Željko Filipin Assignee: david_calavera Priority: Minor Labels: jenkins, plugin - create new free style project - in git repository there are Rakefiles in root folder (workspace/Rakefile) and in spec folder (workspace/spec/Rakefile) - create Invoke Rake build step - click button Advanced for Rake - set Rake working directory to spec - Rakefile just outputs working directory, it looks like this: {code} task :default do puts Dir.pwd end {code} - save changes - run build - console output is: {code} ... [spec] $ rake.bat C:/Jenkins/jobs/testjob/workspace/spec Finished: SUCCESS {code} - so far so good - go to configure build job screen and change Rake file to spec/Rakefile - save changes - run build - console output is: {code} ... [spec] $ rake.bat --rakefile spec/Rakefile (in C:/Jenkins/jobs/test/workspace) C:/Jenkins/jobs/testjob/workspace Finished: SUCCESS {code} - when Rakefile is not in the default location, Rake working directory setting does not work -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-11641) when Rakefile is not in the default location, Rake working directory setting does not work
[ https://issues.jenkins-ci.org/browse/JENKINS-11641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=160426#comment-160426 ] Steve Eckhardt commented on JENKINS-11641: -- blush I just figured out why this is minor. If you use the standard name for the rake file and just set the working directory, it works. In the above example, all the user would have had to do is leave Rakefile in the spec directory and set the working directory to spec. It is not necessary to have the Rakefile in workspace. when Rakefile is not in the default location, Rake working directory setting does not work Key: JENKINS-11641 URL: https://issues.jenkins-ci.org/browse/JENKINS-11641 Project: Jenkins Issue Type: Bug Components: rake Affects Versions: current Environment: Windows Server 2008 R2 Standard 64-bit Jenkins 1.437 (installed via native package for windows) Jenkins Rake plugin 1.7.7 ruby 1.9.2p290 (2011-07-09) [i386-mingw32] rake 0.9.2.2 Reporter: Željko Filipin Assignee: david_calavera Priority: Minor Labels: jenkins, plugin - create new free style project - in git repository there are Rakefiles in root folder (workspace/Rakefile) and in spec folder (workspace/spec/Rakefile) - create Invoke Rake build step - click button Advanced for Rake - set Rake working directory to spec - Rakefile just outputs working directory, it looks like this: {code} task :default do puts Dir.pwd end {code} - save changes - run build - console output is: {code} ... [spec] $ rake.bat C:/Jenkins/jobs/testjob/workspace/spec Finished: SUCCESS {code} - so far so good - go to configure build job screen and change Rake file to spec/Rakefile - save changes - run build - console output is: {code} ... [spec] $ rake.bat --rakefile spec/Rakefile (in C:/Jenkins/jobs/test/workspace) C:/Jenkins/jobs/testjob/workspace Finished: SUCCESS {code} - when Rakefile is not in the default location, Rake working directory setting does not work -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira