Changeset [1f7176a6a611f30a0d70e0f75ec90724f6302043] by michael

March 20th, 2010 @ 02:27 AM

reworked rss publisher to keep status of a configurable number recent builds.

Converted over to using the ruby rss library. There are better libraries
that could be used, but this one comes with ruby so it doesn't add new external
dependencies.

A configuration option 'keep' specifies how many total builds to retain in the feed.
The default is 1 to match the previous behavior.

The rss library really insists on building a valid feed, so I had to add
description and link elements that weren't present in the previous code.
The channel_link should be a url set in your config, or it will default to
using a file url pointed at the rss file being written.
The description is the string that used to be the title, and the new
title is now shorter.

The generated rss file will look slightly different to a human, but it
should be valid and it passes the Cerberus rss_publisher_test.rb
In some cases you might need to make adjustments in whatever scripts you
may have that parse the rss after it's generated.
http://github.com/cpjolicoeur/cerberus/commit/1f7176a6a611f30a0d70e...

Committed by michael

  • M doc/site/src/options.page
  • M lib/cerberus/config.example.yml
  • M lib/cerberus/publisher/rss.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Cerberus is a lightweight and easy-to-use Continuous Builder software for Ruby.