M2 Extra Steps Plugin

Plugin Information

Plugin ID m2-extra-steps
Latest Release 1.1.3
Latest Release Date Dec 21, 2009
Sources Subversion
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

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.

Deprecated
Since Maven 3 integration is now included this plugin is deprecated

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)

  • Initial release

Labels:

plugin-deprecated plugin-deprecated Delete
plugin-maven plugin-maven Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Mar 03, 2010

    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.

  2. Mar 17, 2010

    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.

  3. Apr 23, 2010

    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 ?

    1. Jul 08, 2010

      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.

  4. Jul 13, 2010

    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.

    1. Sep 04, 2010

      Robert Watkins says:

      It's a hudson bug. See HUDSON-6033

      It's a hudson bug. See HUDSON-6033

  5. Nov 18, 2010

    Chas Emerick says:

    It appears that the M2 Extra Steps plugin does not ever properly recognize multi...

    It appears that the M2 Extra Steps plugin does not ever properly recognize multimodule m2 release builds as successful, thereby not running post-maven steps (assuming they're configured only to run when the build is successful).

    larrys in #hudson irc suggested that that was due to the separate maven invocations for each module.  i.e. when I look at a build page, each module is gray, with only the top-level project build shown in blue (successful).

    I'm on hudson 1.364, and m2 extra steps plugin v1.1.3.  Is this a known issue?   Presumably, this plugin should determine "success" from the result of the top-level build process, and ignore any ambiguous results from module builds?

    Anyone have ideas as to a workaround?

    1. Nov 19, 2010

      Chas Emerick says:

      Looks like there's an existing ticket for this issue, also with comments re: usa...

      Looks like there's an existing ticket for this issue, also with comments re: usage of the release plugin.  I'd comment there, but apparently I don't have the privs.

      1. Dec 22, 2010

        Chas Emerick says:

        FYI, upgrading to Hudson 1.386 resolved this problem.

        FYI, upgrading to Hudson 1.386 resolved this problem.

  6. Dec 21, 2010

    Timothy Fridey says:

    See below.

    See below.

  7. Dec 21, 2010

    Timothy Fridey says:

    Hi there,             We...

    Hi there,

                We are using this plugin toghether with the 'WAS Builder Plugin' to Deploy out webapps/EJB's to a Develompment environment. All is working well for our webapps but we have come across a problem with this for our EJB's we have multimodule projects containing e.g. EJB-Client.jar and EJB.ear. We have selected the build option 'Build modules in parallel' so that if we make changes to EJB.ear we dont have all the projects using EJB-Client trying to rebuild.
    The problem is that because the build extra steps are defined at a project level this means that After the EJB-Client is built it trys to do a deploy, but we only want to deploy after an EJB.ear is built.

    Is it possible to extent 'M2 Extra Steps Plugin' to be able to select only do extra steps after X module is built?

    Thanks.

    Tim

  8. Sep 28, 2011

    Erik Ramfelt says:

    FYI, the plugin is being maintained at https://wiki.jenkins-ci.org/display/JENKI...