Plugin Information
This plugin provides the ability to add pre- and post-build steps to Maven 2-type projects. This allows for the use of wrapper scripts, cleanup, version updating, etc outside of Maven while still taking advantage of the functionality of Maven 2 projects.
Project Configuration
Check "Configure M2 Extra Build Steps" in the Build Wrappers section of a Maven project's configuration. Add pre- and/or post-build steps, as desired. These steps function the same as freestyle project steps.
Version History
Version 1.1.3 (12/21/2009)
- Bug fix: Load node properties (such as global environment variables) properly. (issue #4701)
- Bug fix: Don't NPE if runIfResult is set to null somehow. (issue #5123)
Version 1.1.2 (09/28/2009)
- Bug fix: Properly checks against build result, taking into consideration that build result object could be null, which translates to successful. (issue #4465)
Version 1.1.1 (05/28/2009)
- Bug fix: very silly mistake caused post-build run criteria to not display properly. (issue #3789)
Version 1.1 (05/26/2009)
- Bug fix: No longer marks build as "keep forever". (issue #3753)
- Feature: Options added for conditionally executing post-build steps only when build succeeds, only when build succeeds or is unstable, or no matter what - the last being the default.
- Also prettied up the config a bit.
Version 1.0 (05/18/2009)
Comments (5)
Mar 03
Praveen Atluri says:
Hello, I am running Shell script after the maven build using this plugin.This p...Hello,
I am running Shell script after the maven build using this plugin.This plugin is running the shell script even If the MVN build is failing.
NOTE: I Enabled "Run only If the build suceeds" option but still this option doesnt seem like working in 1.1.3 version of the plugin.
Mar 17
Peter Schuetze says:
Does this plugin works with the locks and latches plugin? According to the conso...Does this plugin works with the locks and latches plugin? According to the console output only the main maven buildstep is protected by the locks and pre build steps as well as the post build steps are outside of the logged area. I need the pre and post steps also being protected by the locks.
Apr 23
Aranya Das says:
Is it possible to add a pre-build script in a free style project in Hudson ? I h...Is it possible to add a pre-build script in a free style project in Hudson ?
I have a free style grails project and I am building it using grails war.
But I have to run an ant script which will update the application.properties and so that the manifest will be reflecting the version relative to hudson build number.
I think this plugin works for Maven 2-type projects only.
Any clue on this ?
Jul 08
Peter Schuetze says:
You don't need an extra step plugin with a freestyle job. You can already create...You don't need an extra step plugin with a freestyle job. You can already create more than one build step in a freestyle job.
Jul 13
Christoph says:
Well, we're using hudson with the m2 extra steps plugin for building our web-...Well, we're using hudson with the m2 extra steps plugin for building our web- and middletier and still got a major problem with the post build run-criteria.
Each time our web- and middletier builds SCM change triggered incremental, we got the problem that our post-build steps, which do our ant packaging and the SCP job to our test environment, are not set off for a stable or instable build, with the criteria "Run only if build succeeds or is unstable"
This leads to no deliveries for SCM change triggered incremental builds and is really annoying, cause every time we need a delivery for our software, we have to do a complete build, which takes about 20 minutes (incremental only 2-3 minutes).
Does someone also have this problem, or does someone have a solution for this problem, cause the "workaround" to set the criteria to "Run regardless of build result" is no option, leading to "red" deliveries!?
Using: Hudson 1.364, with latest m2 extra steps plugin, jdk1.5.0_18, maven 2.2.1 and ant1.7.
Date: July, the 13th, 2010.