无法填写质量门插件的Project Key

oct*_*ian 12 jenkins sonarqube

我正在尝试与詹金斯一起使用Sonarqube.

我已经添加了Quality Gates插件,如果在Sonarqube中没有尊重质量门,则无法在Jenkins中构建.

但是,如下所示,Quality Gates 没有Project Key字段.

在此输入图像描述

另外,如果我尝试保存配置,我会得到:

JSONObject["projectKey"] not found.
Run Code Online (Sandbox Code Playgroud)

知道为什么会出现这种情况吗?

oct*_*ian 4

我只在“ SonarQube 服务器http://jenkinsInstance/configure中设置了 SonarQube ,但也在“质量门”中没有设置。