提交 d899483b 创建 作者: 宋海霞's avatar 宋海霞

更新 .gitlab-ci.yml

上级 45cea3e8
流水线 #119275 已取消 于阶段
用时 47 分 10 秒
...@@ -9,6 +9,7 @@ variables: ...@@ -9,6 +9,7 @@ variables:
before_script: before_script:
- chmod +x ./gradlew - chmod +x ./gradlew
- chmod +x ./waitfinish.sh
stages: stages:
- code-analysis - code-analysis
...@@ -37,6 +38,7 @@ code-analysis: ...@@ -37,6 +38,7 @@ code-analysis:
script: script:
- ./gradlew assembleDebug --offline - ./gradlew assembleDebug --offline
- sonar-scanner -Dsonar.projectKey=ProjectKey-$CI_PROJECT_ID -Dsonar.projectName=$CI_PROJECT_NAME -Dsonar.links.homepage=$CI_PROJECT_URL -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.url=$CODECODE_PROTOCOL$CODECODE_DOMAIN - sonar-scanner -Dsonar.projectKey=ProjectKey-$CI_PROJECT_ID -Dsonar.projectName=$CI_PROJECT_NAME -Dsonar.links.homepage=$CI_PROJECT_URL -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.url=$CODECODE_PROTOCOL$CODECODE_DOMAIN
- ./waitfinish.sh
allow_failure: true allow_failure: true
only: only:
- master - master
......
  • Developer

    代码质量分析发现了 6 个问题。

    • 0 blocker
    • 🚫 0 critical
    • 3 major
    • 🔽 3 minor
    • 0 info

    注意: 存在下列问题的代码行在本次提交中没有发生变更,无法使用代码行评论的方式进行报告。所以将下列问题汇总显示在这里(点击问题链接可以转到对应的源代码行):

    1. This block of commented-out lines of code should be removed. 📘
    2. This block of commented-out lines of code should be removed. 📘
    3. This block of commented-out lines of code should be removed. 📘
    4. 🔽 Remove this unused import 'android.content.Context'. 📘
    5. 🔽 Remove this unused import 'androidx.test.espresso.IdlingRegistry'. 📘
    6. 🔽 Remove this unused import 'android.widget.TextView'. 📘
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论