AzDo:SSIS 构建任务无法找到 vswhere

AzDo: SSIS Build task failing to find vswhere

我们有一个自托管的代理池,我正在尝试 运行 一个带有 Microsoft "SSIS Build" 任务的管道。

MS Build 任务 运行ning 在相同的代理上可以找到 vswhere.exe 从我在日志中看到的就很好。 但是 "SSIS Build" 任务由于某种原因找不到它。

我没有检查我们是否在代理上安装了 SSDT,这会导致问题吗?

##[section]Starting: Build SSIS
==============================================================================
Task         : SSIS Build
Description  : Build single or multiple SSIS dtproj files in project deployment model or package deployment model.
Version      : 0.2.3
Author       : Microsoft Corporation
Help         : https://aka.ms/AA6pzmk (Check out SSIS Catalog Configuration task if you want to configure folders, projects and environments in SSIS catalog.)
==============================================================================
----------------------------------inputs---------------------------------------
projectPath: <OurPath>.dtproj
configuration: Development
outputPath: <OurOutputPath>
-------------------------------------------------------------------------------
Checking and standardizing arguments...
Getting devenv.exe path...
ERR:No vswhere available in this machine.
##[error]No vswhere available in this machine.
##[section]Finishing: Build SSIS

看来,是的,you need to install Visual Studio and SSIS designer for self-hosted agents

限制和已知问题

  • SSIS Build task relies on Visual Studio and SSIS designer, which is mandatory on build agents. Thus, to run SSIS Build task in the pipeline, you must choose vs2017-win2016 for Microsoft-hosted agents, or install Visual Studio and SSIS designer (either VS2017 + SSDT2017, or VS2019 + SSIS Projects extension) on self-hosted agents.

  • To build SSIS projects using any out-of-box components (including SSIS Azure feature pack, and other third-party components), those out-of-box components must be installed on the machine where the pipeline agent is running. For Microsoft-hosted agent, user can add a PowerShell Script task or Command Line Script task to download and install the components before SSIS Build task is executed. Below is the sample PowerShell script to install Azure Feature Pack

  • Protection level EncryptSensitiveWithPassword and EncryptAllWithPassword are not supported in SSIS Build task. Make sure all SSIS projects in codebase are not using these two protection levels, or SSIS Build task will hang and time out during execution