Publishes integration status to twitter account. Portions of the code used to publish to twitter are from Yedda Twitter C# Library v0.1 written by Eran Sandler. This publisher builds the same string as Thomas Freudenberg's twitter publisher, I used a 'twit' instead of 'twitter' for the type name so it does not interfere with Thomas' plugin.

<twit>
  <username>someuser</username>
  <password>P@ssVVord1</password>
  <continueOnFailure>false<continueOnFailure>
  <projectUrl>http://codeplex.com/ccnetplugins</projectUrl>
  <proxy>
    ...
  </proxy>
</twit>

Name Description Required Type Default
username The twitter user account true string
password The twitter account password true string
continueOnFailure if true, the build will not fail if this publisher fails false boolean false
projectUrl Allows overriding of the project url linked in twitter status false string result.ProjectUrl
proxy Connect to service through a proxy. see Proxy false Proxy

Task Result

When the publisher finishes it will add xml similar to the following
  <twitter>
    <created_at>Fri Apr 25 03:02:48 +0000 2008</created_at>
    <id>796435074</id>
    <text>CCNetPlugins Build Successful: Build 0.1.2.3. See http://codeplex.com/ccnetplugins</text>
    <source>web</source>
    <truncated>false</truncated>
    <in_reply_to></in_reply_to>
    <in_reply_to_user_id></in_reply_to_user_id>
    <user>
      <id>14520429</id>
      <name>ccnetplugins</name>
      <screen_name>ccnetplugins</screen_name>
      <location>Chicago</location>
      <description></description>
      <profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/53282374/cH_s2KX0DrkOt1xS3e9Kig___normal.png</profile_image_url>
      <url>http://codeplex.com/ccnetplugins</url>
      <protected>false</protected>
      <followers_count>0</followers_count>
    </user>
  </twitter>

Last edited Jul 26, 2008 at 4:40 AM by camalot, version 5

Comments

No comments yet.