-
Bug
-
Resolution: Unresolved
-
Minor
-
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
- 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:
task :default do puts Dir.pwd end
- save changes
- run build
- console output is:
... [spec] $ rake.bat C:/Jenkins/jobs/testjob/workspace/spec Finished: SUCCESS
- so far so good
- go to "configure build job" screen and change "Rake file" to "spec/Rakefile"
- save changes
- run build
- console output is:
... [spec] $ rake.bat --rakefile spec/Rakefile (in C:/Jenkins/jobs/test/workspace) C:/Jenkins/jobs/testjob/workspace Finished: SUCCESS
- when Rakefile is not in the default location, "Rake working directory" setting does not work