[ 
https://issues.apache.org/jira/browse/MRELEASE-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Cramer updated MRELEASE-1099:
-------------------------------------
    Description: 
this is a follow-up for MRELEASE-1082.

after using the new 3.0.0-M6 version we are still getting the warning about 
missing blame information during the sonarqube analysis performed during the 
perform step. While checking why it doesn't work I figured out that the 
previous implementation is incomplete.

{noformat}
[INFO] [WARNING] Missing blame information for the following files:
{noformat}

Two things are missing as far as i have seen:
- the {{release-descriptor.mdo}} is incomplete
-- missing equals implementation for {{scmShallowClone}}
-- missing hashcode implementation for {{scmShallowClone}}
- during perform the default of true is used for {{scmShallowClone}} because no 
parameter is available for {{scmShallowClone}}

  was:
after implementing sonar into our release process we noticed that sonar is 
complaining about missing blame information

{noformat}
[INFO] [WARNING] Missing blame information for the following files:
{noformat}
I've seen that in MRELEASE-993 this new type of checkout was introduced and it 
mentions that "per default" the checkout will use the shallow clone. to me, it 
sounds that this is an option that can be configured, but after taking a look 
in the code I see that {{true}} is hardcoded

i would propose to make this option configurable and have a default of {{true}} 
that can be changed when needed, e.g. in the case during the release sonarqube 
is called which needs the full history.


> Use shallow checkout/clone during release:perform
> -------------------------------------------------
>
>                 Key: MRELEASE-1099
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1099
>             Project: Maven Release Plugin
>          Issue Type: Improvement
>          Components: scm
>    Affects Versions: 3.0.0-M5
>            Reporter: Michael Cramer
>            Assignee: Michael Osipov
>            Priority: Major
>              Labels: checkout, clone, git, shallow, up-for-grabs
>             Fix For: 3.0.0-M6
>
>
> this is a follow-up for MRELEASE-1082.
> after using the new 3.0.0-M6 version we are still getting the warning about 
> missing blame information during the sonarqube analysis performed during the 
> perform step. While checking why it doesn't work I figured out that the 
> previous implementation is incomplete.
> {noformat}
> [INFO] [WARNING] Missing blame information for the following files:
> {noformat}
> Two things are missing as far as i have seen:
> - the {{release-descriptor.mdo}} is incomplete
> -- missing equals implementation for {{scmShallowClone}}
> -- missing hashcode implementation for {{scmShallowClone}}
> - during perform the default of true is used for {{scmShallowClone}} because 
> no parameter is available for {{scmShallowClone}}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to