It sure was easy and needed just 3 steps. However, while preparing for my presentation for SD West next week, I saw that Hudson has a neat plug-in for Doxygen. So, here is another way of generating your documentation on a daily basis in 3 simple steps.
1. Download the Doxygen plug-in for Hudson. This is quite easy if you already have Hudson up and running. Just click on the '"Manage Plugins" link, and in the available list check Doxygen and install. Restart hudson for this plugin to become available.
2. Next, configure the plug-in within your Hudson job. As shown below:

Just 3 simple steps, how much easy can generating documentation be? Now you know why I am so crazy about Hudson. Don't you agree?
As always, keep me posted if you need any help. You sure won't. But, in case....
Hi Meera,
ReplyDeleteare you sure that you do not have to run doxygen from an ant task when making use of this plugin? As far as I know the plugin does NOT run doxygen at all but only analyzes the Doxyfile for the correct location of the (prior generated) output and provides a link for it. Hence, setting up (and running) the ant task is still necessary and can be done as you pointed out in your nice article.
Greetz,
Stephan
Oh really. I will have to give a try. Thanks for letting me know, Stephan.
ReplyDeleteHello Meera -
ReplyDeleteThank you for the wonderful posts!
I was trying to do the Doxygen plugin on hudson. Completed Step1 and I can see the doxygen plugin checked on my manage plugin page. But when I get to my job- configure page... I cannot see the UI part for 'Publish Doxygen' mentioned in Step: 2. We are using Hudson version 1.297.
Thank you,
Shyla.
Shyla.
ReplyDeleteGet the latest Hudson. It might help.
You have forgotten to precise that doxygen must already be installed before using the doxygen plugin in Hudson. Once you installed doxygen on the computer, you can type the following command line to generate the required Doxyfile required by the Hudson's job:
ReplyDelete>doxygen -g
Anyway, a doxygen manual is available to download on the doxygen website (http://www.doxygen.nl/download.html) along with the doxygen installer for both Linux and Windows.
I've also just discovered Hudson and think it's v cool.
ReplyDeleteTrying to setup with Doxygen on a slave but seem to be hitting a wall. Doxygen plugin crashes (hudson.AbortException) if the output folder doesn't already exist on slave (but if run Doxygen from command line, it creates the folder for you).
However, if I create the exact folder on slave then it complains about not being able to copy the generated HTML from "null" to the hudson directory (which should be on the master not the slave!
Am running on WinXP and using Hudson 1.3.76 and Doxygen plugin 0.6.
Hello Meera,
ReplyDeleteThanks a lot for your nice articles.