My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 19, 2008 by joshcoffman
Labels: Featured
CCNetTwitterPlugin  
twitter status plugin for cruisecontrol.net

Introduction

a simple ccnet plugin to tweet the build status for cruisesontrol.net.

Installation

To install, copy ccnet.twittertask.plugin.dll and yedda.twitter.dll to to location where cruisecontrol.net is installed. The default is "C:\Program Files\CruiseControl.NET\server". You'll need to stop the CruiControl service first if its running; the start it again after you copy those dll's. Next just add the configuration in your ccnet.config file.

For more detailed information on configuring ccnet other than this plugin, please goto this website: cruisecontrol.net

Configuration

Here is a sample config file to use the twitter task:

<cruisecontrol>
  <project name="rhinotools">
	<triggers>
    <scheduleTrigger time="06:30" buildCondition="ForceBuild" name="Scheduled">
		<weekDays>
			<weekDay>Monday</weekDay>
			<weekDay>Tuesday</weekDay>
			<weekDay>Wednesday</weekDay>
			<weekDay>Thursday</weekDay>
			<weekDay>Friday</weekDay>
		</weekDays>
	</scheduleTrigger>
	</triggers>

    <sourcecontrol type="svn">
      <trunkUrl>https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools</trunkUrl>
      <workingDirectory>D:\Dev\rhino-tools</workingDirectory>
      <executable>D:\Dev\svn-win32-1.5.0\bin\svn.exe</executable>
      <tagOnSuccess>false</tagOnSuccess>
	  <autoGetSource>true</autoGetSource>
    </sourcecontrol>
    <tasks>    
	  <twitterstatus>
	    <user>csinctw1</user>
		<password>some password</password>
		<message>updating source code</message>
	  </twitterstatus>
	</tasks>
  </project>
</cruisecontrol>

To configure and use the twitter task plugin, just add a task as show above. Then just specify the twitter acocunt's username, password, and a message. Optionally, you can tell it to include the machine name in the twitter message by using this xml tag:

<includemachinename>
true
</includemachinename>
. Below is a sample:

<twitterstatus>
  <user>csinctw1</user>
  <password>some password</password>
  <message>updating source code</message>
  <includemachinename>true</includemachinename>
</twitterstatus>

Here is a sample twitter page: http://twitter.com/csinctw1

To Do

History

Version 0.1.2

Version 0.1.1

Version 0.1
  • basic functionality

Hosted by Google Code