VSTS 多配置 SonarQube
VSTS multi configuration SonarQube
我在 Visual Studio Team Services 中配置了一个多配置 vNext 构建。构建步骤按顺序配置如下:
Nuget Restore
NPM Install
Grunt task
Fetch the Quality Profile from SonarQube
Build Solution
Build Functional Tests
Finish SonarQube analysis and upload results to SonarQube
Publish Artifacts
构建可以在 VSTS 运行ning 中并行看到。问题是当 "Finish SonarQube..." 步骤 运行 时,它们几乎同时联系服务器。这(有时)会使服务器超时。由于超时,我已将构建中的 SonarQubeAnalysisTimeoutInSeconds 变量提高到 1000。有什么方法可以防止 SonarQube 运行 在所有三个版本上都出现?
不,目前无法enable/disable构建过程中的特定构建步骤。可以在这里找到类似的用户声音:allow build vNext/preview tasks to be conditionally enabled or disabled.
如果您不想将 sonarqube 运行 用于某些配置,您需要为它们创建一个单独的构建定义,并且 disable/remove SonarQube 现在在定义中的步骤。
我在 Visual Studio Team Services 中配置了一个多配置 vNext 构建。构建步骤按顺序配置如下:
Nuget Restore
NPM Install
Grunt task
Fetch the Quality Profile from SonarQube
Build Solution
Build Functional Tests
Finish SonarQube analysis and upload results to SonarQube
Publish Artifacts
构建可以在 VSTS 运行ning 中并行看到。问题是当 "Finish SonarQube..." 步骤 运行 时,它们几乎同时联系服务器。这(有时)会使服务器超时。由于超时,我已将构建中的 SonarQubeAnalysisTimeoutInSeconds 变量提高到 1000。有什么方法可以防止 SonarQube 运行 在所有三个版本上都出现?
不,目前无法enable/disable构建过程中的特定构建步骤。可以在这里找到类似的用户声音:allow build vNext/preview tasks to be conditionally enabled or disabled.
如果您不想将 sonarqube 运行 用于某些配置,您需要为它们创建一个单独的构建定义,并且 disable/remove SonarQube 现在在定义中的步骤。