我在使用我们的产品发布管道和代理时遇到问题,特别是它无法下载用于使用 IIS 发布的工件。在尝试运行版本时,下载工件步骤记录
2023-02-22T22:18:42.6467404Z ##[section]Starting: Download artifact - Build-Production-API-TypeScript - api
2023-02-22T22:18:42.7319251Z ==============================================================================
2023-02-22T22:18:42.7319957Z Task : Download build artifacts
2023-02-22T22:18:42.7320423Z Description : Download files that were saved as artifacts of a completed build
2023-02-22T22:18:42.7320695Z Version : 0.216.0
2023-02-22T22:18:42.7321076Z Author : Microsoft Corporation
2023-02-22T22:18:42.7321547Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
2023-02-22T22:18:42.7321911Z ==============================================================================
2023-02-22T22:18:46.8249186Z C:\www\agents\release\externals\node10\bin\node.exe: --openssl-legacy-provider is not allowed in NODE_OPTIONS
2023-02-22T22:18:46.9425936Z ##[error]Exit code 9 returned from process: file name 'C:\www\agents\release\externals\node10\bin\node.exe', arguments '"C:\www\agents\release\_work\_tasks\DownloadBuildArtifacts_a433f589-fce1-4460-9ee6-44a624aeb1fb\0.216.0\main.js"'.
2023-02-22T22:18:46.9444047Z ##[section]Finishing: Download artifact - Build-Production-API-TypeScript - api
为什么甚至涉及节点超出我的理解,但是不同管道中的相同步骤就可以了:
2023-02-22T21:58:17.1993657Z ##[section]Starting: Download artifact - Build-Dev-API-TypeScript - api
2023-02-22T21:58:17.3002355Z ==============================================================================
2023-02-22T21:58:17.3003614Z Task : Download build artifacts
2023-02-22T21:58:17.3006223Z Description : Download files that were saved as artifacts of a completed build
2023-02-22T21:58:17.3006760Z Version : 0.216.0
2023-02-22T21:58:17.3007603Z Author : Microsoft Corporation
2023-02-22T21:58:17.3008662Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
2023-02-22T21:58:17.3009343Z ==============================================================================
2023-02-22T21:58:28.1109733Z Downloading artifacts for build: 1687
2023-02-22T21:58:28.4930789Z Downloading items from container resource #/6191210/api
2023-02-22T21:58:28.4931934Z Downloading artifact api from: https://dev.azure.com/IGTOperationServices//_apis/resources/Containers/6191210?itemPath=api&isShallow=true&api-version=4.1-preview.4
2023-02-22T21:58:29.2199004Z Downloading api/1687.zip to C:\www\agents\release\_work\r1\a\Build-Dev-API-TypeScript\api\1687.zip
2023-02-22T21:58:30.7748022Z Downloaded api/1687.zip to C:\www\agents\release\_work\r1\a\Build-Dev-API-TypeScript\api\1687.zip
2023-02-22T21:58:31.5079000Z Total Files: 1, Processed: 1, Skipped: 0, Failed: 0, Download time: 3.013 secs, Download size: 14.790MB
2023-02-22T21:58:31.5367659Z Successfully downloaded artifacts to C:\www\agents\release\_work\r1\a\Build-Dev-API-TypeScript\
2023-02-22T21:58:31.5410177Z ##[section]Finishing: Download artifact - Build-Dev-API-TypeScript - api
简单的答案是关闭抱怨的 NODE_OPTION,但我们的应用程序需要它。两台主机都已验证运行相同版本的 Windows、节点、npm 和代理,我什至确认这两个发布管道之间的唯一区别是变量和部署组等 ID。我错过了什么?