Including developer notes as part of your cruisecontrol.rb task
October 2, 2008 § Leave a comment
So we can stay on top of our TODOs, FIXMEs and CHANGEs, we include the “notes” rake task output as one of the custom build artifacts. As I haven’t found a better way to pipe the output of invoked rake tasks, we redirect stdout into a file.
Add to your cruise.rake file:
orig_stdout = $stdout $stdout = File.new('log/developer_notes.log', 'w+') Rake::Task['notes'].invoke $stdout = orig_stdout
And ensure that all .log files within the log/ directory are copied to the custom build artifacts by adding the following into your cruise_config.rb
Project.configure do |project| project.log_publisher.globs = ['log/*.log'] end
Original post: Including developer notes as part of your cruisecontrol.rb task.