You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/08/15 17:39:00 UTC

[jira] [Commented] (MINVOKER-308) invoker.buildResult should be configurable per index/execution

    [ https://issues.apache.org/jira/browse/MINVOKER-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17579829#comment-17579829 ] 

Konrad Windszus commented on MINVOKER-308:
------------------------------------------

Sorry for the noise here, in fact this works as expected (https://github.com/apache/maven-invoker-plugin/blob/166b7295632bce336837a2ab9b7231b0003a7f12/src/main/java/org/apache/maven/plugins/invoker/InvokerProperties.java#L497). Issue was in front of the desk :-)

> invoker.buildResult should be configurable per index/execution
> --------------------------------------------------------------
>
>                 Key: MINVOKER-308
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-308
>             Project: Maven Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Often the same project is used to test for successful executions and non-successful ones (depending on parameters set via {{invoker.goals.<index>}}. 
> Unfortunately the invoker property key {{invoker.buildResult}} cannot be set per execution/index (https://github.com/apache/maven-invoker-plugin/blob/166b7295632bce336837a2ab9b7231b0003a7f12/src/main/java/org/apache/maven/plugins/invoker/InvokerProperties.java#L419).
> Particularly because https://maven.apache.org/plugins/maven-invoker-plugin/integration-test-mojo.html#invokerPropertiesFile currently states:
> {quote}
> \# The expected result of the build, possible values are "success" (default) and "failure"
> \# can be indexed
> invoker.buildResult = failure
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)