Shallow clone detected, no blame information will be provided. You can convert to non

编程入门 行业动态 更新时间:2024-10-25 00:31:29

Shallow clone <a href=https://www.elefans.com/category/jswz/34/1729404.html style=detected, no blame information will be provided. You can convert to non"/>

Shallow clone detected, no blame information will be provided. You can convert to non

[WARNING] Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'.

 sonarqube执行扫描代码时,报错上所示。导致不能将bug自动关联到责任人信息(责任人信息与sonarqube用户的SCM账号也有关系)。是因为git浅克隆的原因。需要在gitlab runner执行时,配置git fetch --unshallow || true。具体配置如下:

sonarqube-check:stage: .pretags:- sharedrunnerimage: maven:3.6.3-jdk-11variables:SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"  # Defines the location of the analysis task cacheGIT_DEPTH: "0"  # Tells git to fetch all the branches of the project, required by the analysis taskcache:key: "${CI_JOB_NAME}"paths:- .sonar/cachebefore_script:- git fetch --unshallow || truescript: - mvn verify sonar:sonar -Dsonar.projectKey=rmis_rmis-backend_AYmRKhJ4OvT7Wd1RdzKiallow_failure: trueonly:- master

更多推荐

Shallow clone detected, no blame information will be provided. You can convert t

本文发布于:2024-02-12 01:56:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1685095.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:detected   clone   Shallow   convert   information

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!