我有一个在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中看到构建。问题是当"Finish SonarQube...“步骤运行时,它们几乎同时与服务器联系。这(有时)会使服务器超时。由于超时,我已经将构建中的SonarQubeAnalysisTimeoutInSeconds变量调高到1000。有什么方法可以阻止SonarQube在所有三个版本上运行吗?
发布于 2016-07-20 13:13:16
不能,目前还没有办法在构建过程中启用/禁用特定的构建步骤。类似的用户声音可以在这里找到:allow build vNext/preview tasks to be conditionally enabled or disabled.
如果您不希望针对某些配置运行sonarqube,则需要为它们创建单独构建定义,并暂时禁用/删除定义中的SonarQube步骤。
https://stackoverflow.com/questions/38469691
复制相似问题