Shallow clone 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
最新文章
- 关于C语言编程中include的用法
- 强力删除文件
- 网络Socket编程
- principal java
- HTK嵌入式训练
- FPGA设计中,产生LFSR伪随机数
- VSS使用技巧
- ext2ext3 结构分析
- 基于BS的校园餐厅网上订餐系统
- SAR成像系列:【5】合成孔径雷达(SAR)成像算法
- 如何编写Python爬虫
- Android HashTable
- Linux C编程itoa()函数 atoi()函数
- 基于React、Typescript和Solidity的NFT完整教程
- 集合类 CList的使用
- MBRGPT硬盘分区类型属性详解(Win下更改设置OEM恢复分区方法)
- Python的return语句中使用条件判断