• 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.

      I have maven 3 task 'clean' configured that is first in the build Stage

      The Maven 3 goal is set like this:
      --fail-never clean

      I expect the clean to fail because of the project refactoring of other reasons. This should not fail the build execution.

      But in fact the build is still failing:
      This is the fragment from the log:

      23-Jun-2011 14:41:39 [ERROR] After correcting the problems, you can resume the build with the command
      23-Jun-2011 14:41:39 [ERROR] mvn <goals> -rf :pyx-entity-gae
      23-Jun-2011 14:41:39 [INFO] Build failures were ignored.
      23-Jun-2011 14:41:39 Failing task since text 'BUILD SUCCESS' was not found in last 250 log entries
      23-Jun-2011 14:41:39 Finished task 'clean'

            [BAM-9108] Make maven 3 --fail-never flag not fail the job

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3015687 ] New: JAC Suggestion Workflow 3 [ 3601918 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing v4 [ 2698434 ] New: JAC Suggestion Workflow [ 3015687 ]
            Owen made changes -
            Backlog Order (Obsolete) Original: 2290000000
            Assignee Original: Nathan Wilson [Atlassian] [ nwilson@atlassian.com ]
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1408485 ] New: Confluence Workflow - Public Facing v4 [ 2698434 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 609017 ] New: Bamboo Workflow 2016 v1 [ 1408485 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 599681 ] New: Bamboo Workflow 2014 v2 [ 609017 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 304004 ] New: Bamboo Workflow 2014 [ 599681 ]
            MarkC made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: To be reviewed [ 10026 ] New: Resolved [ 5 ]
            MarkC made changes -
            Fix Version/s Original: 3.3 M [ 15310 ]

            I have added the option "Use Maven's Return Code" in the task configuration panel for Maven tasks. Checking this box will turn off looking for "Build Success" and instead make Bamboo use the return code from Maven. This will allow you to use the --fail-never flag to force a build to pass, as discussed above.

            This feature should make it into Bamboo 3.3.1.

            Regards,
            Nathan

            Nathan Wilson [Atlassian] added a comment - I have added the option "Use Maven's Return Code" in the task configuration panel for Maven tasks. Checking this box will turn off looking for "Build Success" and instead make Bamboo use the return code from Maven. This will allow you to use the --fail-never flag to force a build to pass, as discussed above. This feature should make it into Bamboo 3.3.1. Regards, Nathan

              Unassigned Unassigned
              289d6a7bef6f skarzhevskyy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: