-
Bug
-
Resolution: Incomplete
-
Major
-
None
Configuration:
- Maven aggregator build.
- Incremental build turned on.
- Triggered by SVN
- Some post build step.
- Run Only If Build Succeeded selected.
Steps:
1. Change some file in the SVN project unrelated to maven (say a README.txt).
Outcome:
1. Hudson will checkout the changes and run maven.
2. Maven will report no changes:
[INFO] No goals needed for project - skipping
3. The build is successful according to maven
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Thu Apr 22 13:21:26 EDT 2010 [INFO] Final Memory: 14M/27M [INFO] ------------------------------------------------------------------------
4. The post build steps are not run.
5. Hudson reports the build as successful.
Expected:
The post build steps are run as the build was successful (according to Maven output and Hudson).
Or:
Is there a use case for not running the post build steps when maven does not run any goals?
In this case, "Run Only If Build Succeeded" could be split into two options based on whether Maven runs goals.