I have Project A, and I want to execute Project B BEFORE I run A.
In Ant, I would simply say
target A depends="B"
In Hudson, they made it more workaroundish.
In Project B, enable "Trigger builds remotely (e.g., from scripts)", specify a token (eg TOKEN); to trigger the job you do:
wget http://localhost:8080/job/OSBProject1/build?token=TOKEN
In Widows (the Windows users commit often suicide) you can use Wget for Widows: http://gnuwin32.sourceforge.net/packages/wget.htm
see also here
An alternative is using the Parametrized Trigger Plugin and have a dummy Project C run B and A
All this is very silly, there should be a pre-dependencies and post-dependencies list.
Showing posts with label hudson. Show all posts
Showing posts with label hudson. Show all posts
Sunday, November 6, 2011
Friday, August 5, 2011
Upgrading to Hudson 2.1.0
I am very pleased for this upgrade:
* support of Maven 3.0.3 (cool)
* improved statistics on the build
* Maven 3 view of artifacts
* One click access to last build console output
* Possibility to rename Jobs (
http://hudson-ci.org/
What is new in Hudson 2.1.0:
http://hudson-ci.org/docs/news.html
Hudson complete guide
* support of Maven 3.0.3 (cool)
* improved statistics on the build
* Maven 3 view of artifacts
* One click access to last build console output
* Possibility to rename Jobs (
http://hudson-ci.org/
What is new in Hudson 2.1.0:
http://hudson-ci.org/docs/news.html
Hudson complete guide
Labels:
hudson
hudson.tasks.test.TestResult error
java.lang.ClassCastException: hudson.tasks.test.AggregatedTestResultPublisher$TestResultAction cannot be cast to hudson.tasks.test.TestResult
now I understand why my JUnit tests were not showing in the "Test Result Trend" graph... WTF....
I clean up all the past files, including the exploded war, and restart Hudson...
Now the "Test Result Trend" is showing... hurrah!
now I understand why my JUnit tests were not showing in the "Test Result Trend" graph... WTF....
I clean up all the past files, including the exploded war, and restart Hudson...
Now the "Test Result Trend" is showing... hurrah!
Labels:
hudson
Thursday, July 14, 2011
Hudson Fun Plugins
I have installed the following plugins, just for fun:
Hudson Speaks! Plugin http://wiki.hudson-ci.org/display/HUDSON/Hudson+Speaks!+Plugin (first, you must go to the /configure page and test if your server supports sound... unfortunately it doesn't support remote notification on another server...)
Hudson Sounds plugin
Radiator View Plugin http://wiki.hudson-ci.org/display/HUDSON/Radiator+View+Plugin
To enable the Radiator View, click on myViews and add a view of type "Radiator"
(even if you are blind you will see if your build failed)
For sound and tray monitoring, you can still use the CruiseControl trick:
"An alternative to this is to use the CCTray app that comes with CruiseControl.NET and have it monitor your Hudson server. You can set this up on a shared machine or on individual developer machines. To have CCTray monitor Hudson, set it up to monitor a custom URL that looks like http://hudsonserver:hudsonport/hudsonpath/cc.xml
Basically, appending cc.xml to almost any Hudson URL (project, view, etc.) will return an XML document that CCTray can parse. You can then use CCTray to play .wav files, speak, or even control X10 devices.
CCTray is available at http://sourceforge.net/projects/ccnet/files/"
I will do it first thing tomorrow...
Hudson Speaks! Plugin http://wiki.hudson-ci.org/display/HUDSON/Hudson+Speaks!+Plugin (first, you must go to the /configure page and test if your server supports sound... unfortunately it doesn't support remote notification on another server...)
Hudson Sounds plugin
Radiator View Plugin http://wiki.hudson-ci.org/display/HUDSON/Radiator+View+Plugin
To enable the Radiator View, click on myViews and add a view of type "Radiator"
(even if you are blind you will see if your build failed)
For sound and tray monitoring, you can still use the CruiseControl trick:
"An alternative to this is to use the CCTray app that comes with CruiseControl.NET and have it monitor your Hudson server. You can set this up on a shared machine or on individual developer machines. To have CCTray monitor Hudson, set it up to monitor a custom URL that looks like http://hudsonserver:hudsonport/hudsonpath/cc.xml
Basically, appending cc.xml to almost any Hudson URL (project, view, etc.) will return an XML document that CCTray can parse. You can then use CCTray to play .wav files, speak, or even control X10 devices.
CCTray is available at http://sourceforge.net/projects/ccnet/files/"
I will do it first thing tomorrow...
Labels:
cruisecontrol,
hudson
Hudson integration with JUnit
my ANT build.xml :
Once I configure Hudson with a valid ANT installation, running the test produces a
junitreport under the /home/a087/.hudson (hudson's home dir)
In fact the "Publish JUnit test result report " Hudson option accepts the parameter
"Test report XMLs" with the notation **/reports/*.xml relative to the /home/a087/.hudson directory! (it took some time to figure out)
The TESTS-TestSuites.xml file produced contains aggregate info on all the tests run:
And it happily appears on the "Test Result" tab
If you get
Fingerprinting not enabled on this build. Test aggregation requires fingerprinting
in Post-build Actions, enable "Record fingerprints of files to track usage "
and enter **/reports/*.xml in "Files to fingerprint"
More on TESTS-TestSuites.xml and JUnitReport
Once I configure Hudson with a valid ANT installation, running the test produces a
junitreport under the /home/a087/.hudson (hudson's home dir)
In fact the "Publish JUnit test result report " Hudson option accepts the parameter
"Test report XMLs" with the notation **/reports/*.xml relative to the /home/a087/.hudson directory! (it took some time to figure out)
The TESTS-TestSuites.xml file produced contains aggregate info on all the tests run:
....
And it happily appears on the "Test Result" tab
If you get
Fingerprinting not enabled on this build. Test aggregation requires fingerprinting
in Post-build Actions, enable "Record fingerprints of files to track usage "
and enter **/reports/*.xml in "Files to fingerprint"
More on TESTS-TestSuites.xml and JUnitReport
Hudson Tray Application failing with "multiple points" NumberFormatException
java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Float.parseFloat(Unknown Source)
at org.hudson.trayapp.model.Server.isHudsonBuild173orGreater(Server.java:300)
If anybody has a clue, please help.
I was trying to install it from the Hudson Update Center...
Here http://issues.hudson-ci.org/browse/HUDSON-5557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel it says that you must be logged in in order to make Hudson Tray Application work.... =:o(
I had to "Enable security" in Hudson configuration, "Hudson's own user database"
At this point I login and.... I still get the exception :o(((
Here http://wiki.hudson-ci.org/display/HUDSON/Hudson+Tray+Application is a preview of what I would get if only it was working.
When I click on the link to Issue Tracker I get a "404" at http://java.net/jira/browse/HUDSON
very depressing.... one hour wasted...
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Float.parseFloat(Unknown Source)
at org.hudson.trayapp.model.Server.isHudsonBuild173orGreater(Server.java:300)
If anybody has a clue, please help.
I was trying to install it from the Hudson Update Center...
Here http://issues.hudson-ci.org/browse/HUDSON-5557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel it says that you must be logged in in order to make Hudson Tray Application work.... =:o(
I had to "Enable security" in Hudson configuration, "Hudson's own user database"
At this point I login and.... I still get the exception :o(((
Here http://wiki.hudson-ci.org/display/HUDSON/Hudson+Tray+Application is a preview of what I would get if only it was working.
When I click on the link to Issue Tracker I get a "404" at http://java.net/jira/browse/HUDSON
very depressing.... one hour wasted...
Labels:
hudson
Sunday, February 28, 2010
Hudson and Ant
Ever tried to run unit tests from Ant inside Hudson, and gotten the infamous:
Could not create task or type of type: junit
?
There is a (pathetic, just like everything concerning Ant technology) workaround:
add
-lib /weblogic/bea10.3/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.junit4_4.3.1/junit.jar
before the list of targets you want to be run.
YAPPOS ! (yet another pathetic piece of shit)
ALSO, don't forget to set your Java Otions to:
-DLOCALCLASSPATH=/weblogic/bea10.3/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse/plugins/org.junit4_4.3.1/junit.jar
No wonder why people are migrating to .NET....
simple lack of any standardization in Java, everything turns into a complete hack.
Subscribe to:
Posts (Atom)