-
Suggestion
-
Resolution: Fixed
-
bamboo 3.1.3, linux, maven 3
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
Workflow | Original: JAC Suggestion Workflow [ 3015687 ] | New: JAC Suggestion Workflow 3 [ 3601918 ] |
Status | Original: RESOLVED [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Confluence Workflow - Public Facing v4 [ 2698434 ] | New: JAC Suggestion Workflow [ 3015687 ] |
Backlog Order (Obsolete) | Original: 2290000000 | |
Assignee | Original: Nathan Wilson [Atlassian] [ nwilson@atlassian.com ] | |
Issue Type | Original: Improvement [ 4 ] | New: Suggestion [ 10000 ] |
Workflow | Original: Bamboo Workflow 2016 v1 [ 1408485 ] | New: Confluence Workflow - Public Facing v4 [ 2698434 ] |
Workflow | Original: Bamboo Workflow 2014 v2 [ 609017 ] | New: Bamboo Workflow 2016 v1 [ 1408485 ] |
Workflow | Original: Bamboo Workflow 2014 [ 599681 ] | New: Bamboo Workflow 2014 v2 [ 609017 ] |
Workflow | Original: Bamboo Workflow 2010 [ 304004 ] | New: Bamboo Workflow 2014 [ 599681 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: To be reviewed [ 10026 ] | New: Resolved [ 5 ] |
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