Html publisher plugin for Jenkins not triggering Doxygen to create documents - html

I am able to run Doxygen via the Doxygen GUI frontend and generate the documentation as expected. When I configure this to run in Jenkins, the console output from my build suggests that doxygen is running:
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level
C:\Doxygen\html to
C:\Jenkins\jobs\GIT_MASTER\htmlreports\GIT_MASTER_Doxygen_Documentation
Finished: SUCCESS
However when I check the OUTPUT_DIRECTORY it is empty.
My version of Jenkins is 1.542,
the html publisher plugin is 1.3 and
Doxygen is 1.8.6
I'm wondering if I have missed something in Jenkins configuration but I can't find anything else. As always any help is appreciated.
BTW, the Jenkins Doxygen plugin works as expected to generate html reports.
Thanks

Related

Finding unused plugins in HUdson

I am using Hudson 3.3.1 in my org and I see a bunch of unwanted plugins being added to the hudson. I am planning to get rid of those unwanted or unused plugin. I thought of scanning all the job config files, but I have following questions.
If there are plugins that not being used by hudson job configs, but used by hudson configuration, What\which files should I search for?
In configs what should I be searching for. Pages what ever I am searching for is redirecting to jenkins pages.
I read through the following post How to list all unused jenkins plugins?
I tried installing this plugin http://updates.jenkins-ci.org/download/plugins/plugin-usage-plugin/ , but it started throwing out error as I believe it is supported only by jenkins
I added an answer to the question you linked that adds steps on how to search the main Jenkins configuration file as well as individual job config files. If you use the code in the linked question you should be able to find all the used plugins.

JUnit Attachments Plugin is not working on Hudson

I'm running integration tests using TestNG and Hudson combination. I'm able to generate my own customized JUnit XML files for Hudson for reporting purpose. And Hudson displays my customized report greatly. Now I want to attach test results which are of .txt files to my test class/test method. I have taken JUnit Attachments Plugin and installed it on Hudson. I generated the .txt files into the surefire-reports//*-output.txt directory as per the example mentioned in the following link: http://wiki.hudson-ci.org/display/HUDSON/JUnit+Attachments+Plugin.
But JUnit Attachments Plugin is not working on Hudson. I'm unable to see the attachments in Hudson.
Any suggestions to make it work?

Hudson: Error after creating doxygen files; downgrade not working either

I'm having the following problem with Hudson after upgrading to 2.1.0:
After successfully creating the doxygen output, the following exception occurs:
Publishing Doxygen HTML results.
The determined Doxygen directory is 'C:/doxy/myDir'.
FATAL: error
hudson.util.IOException2: java.io.IOException: Unconnected pipe
The error did not occur with 2.0.1, unfortunately, downgrading does not work - Hudson tells me, that it can't read the job files anymore.
Does anyone know the best way to deal with this? Is there a simple solution to either make the doxygen plugin work in 2.1.0 or to successfully downgrade to 2.0.1?
Not sure what exactly the problem was, but migrating to the newest Jenkins release and using the HTML report publisher plugin instead of the Doxygen plugin is at least a work

Enabling Ant Tools in a new Eclipse Galileo installation

I have recently installed Eclipse Galileo with the PHP Developers Tools. I plan to install the Flash Builder 4 Plug-in to do ActionScript development as well.
I want to use Eclipse to both create an ant build script and execute it to compile ActionScript docs from an ActionScript 3 code library.
The problem is that when I try to run a build.xml file (which every site that answers the ant build questions says it should handle automatically) I never see an option to run it as an Ant Build, not can I find any way to associate XML files to Ant in the Preferences or External Tools dialogs.
I;ve seen numerous tutorials on build Ant build files, but never anything about running the actual build script.
Try to install "Eclipse Java EE Developer Tools" component. It's in "Web, XML, and Java EE Development" of "Galileo - http://download.eclipse.org/releases/galileo" repository.

Execute command in Hudson as Post-build Actions

I am new in Hudson.
I would like to execute a 'sourcecodeanalyzer' command in Hudson as Post-build Actions to generate an html report. Please let me know is this at all possible, if yes let me know the Hudson configuration steps to execute the command.
Your earliest response in this regard will be extremely helpful.
Thanks in advance.
Yes, it is almost certainly possible.
You will need to configure the Hudson project to have either a post-build action or a build step that runs your source code analyzer.
You've not stated in your question precisely which analyzer - it may be that Hudson already has a plug-in installed for it, in which case it may be listed on the Config page for the project at the bottom under Post-build Actions.
If not, next check to see if there's a plug-in available for the analyzer that hasn't been installed. From the main Hudson page select Manage Hudson, then Manage Plugins, and choose the Available tab. If there is a plug-in available it's definitely a good idea to use it as they are generally very well integrated with Hudson itself.
As a last resort you'll have to configure a build step to run the analyzer. Configure the project, then choose "Add build step". The drop-down that appears depends on your environment (Windows or Linux) but should include the ability to run a shell command or batch file. You can configure your analyzer there.
(If you're building Windows Visual Studio applications, a more flexible way that I've used is to use the MSBuild plug-in for builds, and have an MSBuild script that builds the application and then runs analysis tools. This can automate pretty much everything: mine builds the application, builds an acceptance test database, runs the acceptance tests and copies the result HTML to a page linked from the project.)
You could create a new job with a "Execute Shell" build step. Type in the command you wish to run in the text box. Then all you have to do is trigger this job by selecting:
"Build after other projects are built"
And select the trigger job from the list.
Hope this helps!
As a follow up to Jeremy's post. If you don't see the ability to add post build steps, you might work with maven jobs. In that case you need the Hudson M2 Extra Steps Plugin. This will give you pre and post build steps.
I use the 'Post build task' plugin to delete some resources after a build. You could call any shell script or command lines. If you want you could make the call depends on some logging output.
there is one best way to solve this:
Upgrade to Fortify SCA 2.6.x (as of writing, latest version is 2.6.5).
Download the Fortify Maven Plugin version 2.6 from https://customerportal.fortify.com and install it into your Hudson server's Maven repository.
Update your project's pom to carry out the Fortify scan. There is an example provided with the Maven plugin.
Currently , I am experiment with sonar plug in. It looks great check the details here
http://sonar.codehaus.org/a-new-hudson-plugin-for-a-closer-integration-with-sonar/
http://wiki.hudson-ci.org/display/HUDSON/Sonar+plugin