Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-277

Invoke Maven 2.x multiple times in same build

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      Cruise control has the ability to invoke maven multiple times.

      This allows you to specify different environment variables for different goals.

      This is especially handy when trying to work around issues with maven aggregator
      plugins.

      To get the project site for a multi-module to work correctly, you often need to
      rebuild the root site

      $ mvn site
      $ mvn -N site
      $ mvn site:deploy

      Cruise control handles this by separating invocations with a |

      I think Hudson can just dynamically add invocations with it's nice UI.

      There should be a flag on each invocation that specifies whether this invocation
      can fail and not stop subsequent invocations.

      i.e. if we have
      $ mvn deploy
      $ mvn site
      $ mvn -N site
      $ mvn site:deploy
      We might want that
      The first failing should result in a failed build.
      The second failing should result in an unstable build.
      The third failing should not fail the build (maybe mark as unstable).
      The fourth failing should result in a failed build.

            Unassigned Unassigned
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: