You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2020/01/19 16:54:00 UTC

[jira] [Commented] (MINVOKER-250) streamLogsOnFailures - parameter/option

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

Slawomir Jaranowski commented on MINVOKER-250:
----------------------------------------------

We can achieve this by adding postbuild.groovy script with content:

{code}
def buildLog = new File( basedir, 'build.log' )
assert buildLog.text.contains('[INFO] BUILD SUCCESS')
{code}

If assertion will fail log file will be displayed.


> streamLogsOnFailures - parameter/option
> ---------------------------------------
>
>                 Key: MINVOKER-250
>                 URL: https://issues.apache.org/jira/browse/MINVOKER-250
>             Project: Maven Invoker Plugin
>          Issue Type: New Feature
>            Reporter: Slawomir Jaranowski
>            Priority: Major
>
> Usually we don't want see logs from builds jobs.
> But in case of failure it will be very useful to see what happened in build.
> Especially on CI system where we don't directly have access to build workspace.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)