Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-1985

Maven2 builder should add --batch-mode to command line

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 5.1
    • Maven, Tasks
    • Bamboo 1.2.4, Maven 2.0.7
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      The Maven2 builder in Bamboo should use the --batch-mode option on Maven's command line to instruct Maven that it is a non-interactive build.

            [BAM-1985] Maven2 builder should add --batch-mode to command line

            ishabtay added a comment -

            I agree with Asgeir. Maven invocations under Bamboo are always non-interactive. Certain goals might behave differently when executing under batch mode, than when executing under interactive mode with no input stream available.

            It'd be best to add a field to the Maven 2.x/3.x task definition, prompting the user whether batch mode should be used or not (default should be "true").

            ishabtay added a comment - I agree with Asgeir. Maven invocations under Bamboo are always non-interactive. Certain goals might behave differently when executing under batch mode, than when executing under interactive mode with no input stream available. It'd be best to add a field to the Maven 2.x/3.x task definition, prompting the user whether batch mode should be used or not (default should be "true").

            Ajay,

            Yes, I'm aware that I can add such options to the goals myself. My suggestion was to add this as a default in Bamboo's Maven2 builder since Bamboo does in fact perform a non-interactive build. Both plugins and the Maven core use this option to decide whether they prompt for input values or not.

            Regards,
            Asgeir

            Asgeir Storesund Nilsen added a comment - Ajay, Yes, I'm aware that I can add such options to the goals myself. My suggestion was to add this as a default in Bamboo's Maven2 builder since Bamboo does in fact perform a non-interactive build. Both plugins and the Maven core use this option to decide whether they prompt for input values or not. Regards, Asgeir

            AjayA added a comment -

            Hi Asgeir,

            Have you tried setting "--batch-mode" option via the Goal field in your plan's build configuration page?

            For more information please refer to out Bamboo guide on specifying a plan's build resources

            Regards,
            Ajay.

            AjayA added a comment - Hi Asgeir, Have you tried setting "--batch-mode" option via the Goal field in your plan's build configuration page? For more information please refer to out Bamboo guide on specifying a plan's build resources Regards, Ajay.

              Unassigned Unassigned
              f01e870820d6 Asgeir Storesund Nilsen
              Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified