我正在使用gitlab CICD运行管道。为了使用声纳分析代码,我将.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
同一配置在几天前开始工作,我仅在最近几天才遇到此错误。有人可以帮忙吗?
谢谢...
答案 0 :(得分:0)
似乎using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using System;
using System.Threading.Tasks;
public class MyMiddleware
{
private readonly IOptions<MyConfig> _appSettings;
public MyMiddleware(RequestDelegate next, IOptions<MyConfig> config)
{
_next = next;
_configuration = config;
}
public MyMethod()
{
_configuration.Value.MyConfig1
}
}
尚未安装在流道中。
请验证您的跑步者以确认这一点。