【问题标题】:gitlab-sonar-scanner: command not found for JS languagegitlab-sonar-scanner:找不到 JS 语言的命令
【发布时间】:2018-11-20 21:36:46
【问题描述】:

我正在使用 gitlab CICD 来运行管道。为了使用 sonarqube 分析代码,我使用 .gitlab-ci.yml 文件,所有配置如下,

stages:
- analysis

sonarqube:
  stage: analysis
  image: ciricihq/gitlab-sonar-scanner
  variables:
    SONAR_URL: https://playground.altimetrik.com/sonarqube
    SONAR_ANALYSIS_MODE: issues
  script:
    - gitlab-sonar-scanner

我也加了sonar-project.properties

我总是以错误的说法结束,

Running with gitlab-runner 11.3.1 (0aa5179e)
  on Gitlab-Pipeline 04bdd119
Using Shell executor...
Running on ip-10-101-102-187.ec2.internal...
Fetching changes...
HEAD is now at 39bbd50 Update .gitlab-ci.yml
From https://gitlab.altimetrik.com/playground/node_js_usecasepg-ta1811536129881158
   39bbd50..99600f7  master     -> origin/master
Checking out 99600f70 as master...
Skipping Git submodules setup
$ gitlab-sonar-scanner
bash: line 57: gitlab-sonar-scanner: command not found
ERROR: Job failed: exit status 1

几天前同样的配置工作,我最近几天才遇到这个错误。有人可以帮忙吗?

谢谢你...

【问题讨论】:

    标签: sonarqube gitlab-ci sonarqube-scan gitlab-ci-runner


    【解决方案1】:

    您的跑步者中似乎没有安装sonar-scanner。 请验证您的跑步者以进行检查。

    参考:installation steps

    【讨论】:

      猜你喜欢
      • 2020-02-17
      • 2022-01-04
      • 2017-09-18
      • 2018-12-14
      • 1970-01-01
      • 2022-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多