Tagged: cctray RSS

  • John 8:56 pm on July 13, 2009 Permalink | Reply
    Tags: cctray, ,   

    Python and CCTray Again 

    So after creating a python script that would use my tux droid to notify me when a build failed I decided to extend the script a little further. I decoupled it from the tux droid code and added in a status menu. It still requires that CruiseControl.NET has the webdashboard installed. This is my first venture into using GTK with python, as well as threads.

    One of the problems that I encountered when trying to use thread was that they were not behaving correctly. The Thread would appear to start however it would not run. This was easy to fix but adding the following line to initialize the threading.

    gtk.gdk.threads_init()
    

    In addition to this the class that was running the thread not only had to inherit from the threading.Thread object but had to explicitly call the init on the threads base class

    class ccnetworker(threading.Thread):
    
    	# init
    	def __init__(self,xmlPath,pycctray):
    		threading.Thread.__init__(self)
    		self.xmlPath = xmlPath
    		self.pycctray = pycctray
    

    Below is a screen shot of the system tray menu, listing the projects that are available to be force built.

    pycctray screenshot

    # example usage
    python pycctray.py http://localhost/ccnet/XmlServerReport.aspx
    

    You can get the latest source from the bazaar repository

    bzr branch http://bzr.yeticode.co.uk/pycctray
    

    Alternatively you can download the source files on their own: pycctray.tar.gz

     
  • John 11:44 pm on May 26, 2009 Permalink | Reply
    Tags: , cctray, , podcast, ubuntu   

    Ubuntu UK Podcast 

    So despite being a fedora user I’ve recently checked out the uk ubuntu podcast after my lecturer touted my cctray project to them. I’ve tried listening to tech podcasts before and most of them are dull and tedious to listen to. However the guys who do the ubuntu uk podcast are easy to listen to and quite entertaining. Definitely take the time to check out their latest podcast you won’t be disappointed.

     
  • John 8:15 pm on May 6, 2009 Permalink | Reply
    Tags: , cctray, , ,   

    CCTray updates and Mono musings 

    Impleneted some more to the CCTray-gtk project with the ability to add build servers that communicate over HTTP. This did involve commenting out some of the code in the CCTrayLib project, which was unavoidable. The issue occurred as the library added a delegate to the Service point manager

    ServicePointManager.ServerCertificateValidationCallback = delegate{ return true; }
    

    These were causing an exception to be thrown as it is currently not implemented in mono. This so far is the only part of mono that I’ve found that has caused any problems.

    https://bugzilla.novell.com/show_bug.cgi?id=346561

    I’ve also started to implement the ability to remove a project, at the moment it removes the project from the preferences window but does not yet remove the associated project monitor or remove it from the main window’s treeview.

    Once this has been implemented I will create a release or something for testing.

     
  • John 4:01 am on March 24, 2009 Permalink | Reply
    Tags: , cctray, , ,   

    Cruise Control Tray For Linux Update 

    Basic functionality has been implemented with the ability to add project to monitor and receive notifications of the build as and when they occur. At the moment there is not the ability to delete a project that is being monitor this will be implemented next. There is also the ability to force a build of a project, however there is not the ability to abort the build, this will also been implemented in the next couple of days hopefully. Here are some more screen shots of what it currently looks like. The build notification have also been attached to the tray icon.



     
  • John 3:47 am on March 19, 2009 Permalink | Reply
    Tags: , cctray, , , LaunchPad, ,   

    Cruise Control.NET Tray Tool on linux 

    I started looking at creating a port of the cctray tool for CruiseControl.NET but after looking at how it was implemented i decided that it might be easier, and more fun, to implement one myself using mono and GTK#. At the moment the application has the ability to display notification when a build event occurs and to display the list of projects that are being watched. The source code will be available on Launch Pad when I figure out how to use bzr.

    https://code.launchpad.net/~john-yeticode/cctray-gtk/trunk

    here are some screen shots of how it currently looks.



    Cruise Control.NET home page

     
    • Daniel Hommel 7:59 pm on April 10, 2009 Permalink | Reply

      I tried to make CCTray work on mono once and i had to comment out a lot of stuff to get it kind of working (all the windows-isms had to go)… After i got it running there were still a bunch of problems, like a ghost window with no content behind the CCTray window, all the projects showing up 2 times and the tray icon also didn’t work as it should. After all i think writing a Gtk# client is a good idea. I hope you will publish the code soon so i can try it out in my GNOME environment. BTW, do you use CCTrayLib for that project?

      regards,

      Daniel

    • Daniel Hommel 8:03 pm on April 10, 2009 Permalink | Reply

      Just found out that you did publish the code already and that also answered my question about CCTrayLib. I’ll try it out and let you know how it work.

      regards,

      Daniel

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel