使用TerraformCLI任务的管道在昨天发布的150版之后现在失败了。
我尝试运行昨天通过服务连接运行的管道发行版,但由于以下错误而失败:
Exception Message: The pipeline is not valid. Job Phase_1: Step TerraformCLI1 input environmentServiceName references service connection 2165eda3-6299-44c0-9f87-0169d69e87e8 which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz. (type PipelineValidationException)
Exception Stack Trace: at Microsoft.TeamFoundation.DistributedTask.Orchestration.Server.TaskHub.ValidatePipelineProcess(IVssRequestContext requestContext, Guid scopeIdentifier, Int32 definitionId, Guid planId, PipelineEnvironment environment, PipelineProcess pipeline, BuildOptions options) in d:\v2.0\P1\_work\11\s\DistributedTask\Sdk\Server\TaskHub.cs:line 5142
at Microsoft.TeamFoundation.DistributedTask.Orchestration.Server.TaskHub.ValidateProcess(IVssRequestContext requestContext, Guid scopeIdentifier, TaskOrchestrationOwner definition, Guid planId, IOrchestrationEnvironment environment, IOrchestrationProcess process, BuildOptions options) in d:\v2.0\P1\_work\11\s\DistributedTask\Sdk\Server\TaskHub.cs:line 5058
at Microsoft.TeamFoundation.DistributedTask.Orchestration.Server.TaskHub.CreatePlan(IVssRequestContext requestContext, Guid scopeIdentifier, Guid planId, String planGroup, PlanTemplateType templateType, Uri artifactUri, IOrchestrationEnvironment environment, IOrchestrationProcess process, BuildOptions validationOptions, Guid requestedForId, TaskOrchestrationOwner definitionReference, TaskOrchestrationOwner ownerReference, String& pipelineInitializationLog) in d:\v2.0\P1\_work\11\s\DistributedTask\Sdk\Server\TaskHub.cs:line 251
at Microsoft.TeamFoundation.DistributedTask.Orchestration.Server.TaskHub.RunPlan(IVssRequestContext requestContext, TaskAgentPoolReference pool, Guid scopeIdentifier, Guid planId, String planGroup, PlanTemplateType templateType, Uri artifactUri, IOrchestrationEnvironment environment, IOrchestrationProcess process, BuildOptions validationOptions, Guid requestedForId, TaskOrchestrationOwner definitionReference, TaskOrchestrationOwner ownerReference, String& pipelineInitializationLog) in d:\v2.0\P1\_work\11\s\DistributedTask\Sdk\Server\TaskHub.cs:line 1323
at Microsoft.VisualStudio.Services.ReleaseManagement.Server.DistributedTask.PipelineOrchestrator.StartDeployment(AutomationEngineInput input) in d:\v2.0\P1\_work\11\s\ReleaseManagement\Service\ReleaseManagement2\Server\DistributedTask\PipelineOrchestrator.cs:line 76
at Microsoft.VisualStudio.Services.ReleaseManagement.Server.Processors.DeployPhaseRunner.Run(Release release, ReleaseEnvironment releaseEnvironment, ReleaseEnvironmentStep deployStep, DeployPhaseSnapshot snapshotToProcess) in d:\v2.0\P1\_work\11\s\ReleaseManagement\Service\ReleaseManagement2\Server\Processors\DeployPhaseRunner.cs:line 266
at Microsoft.VisualStudio.Services.ReleaseManagement.Server.Processors.DeployPhaseOrchestrator.RunDeployPhase(Release release, ReleaseEnvironment releaseEnvironment, ReleaseEnvironmentStep deployStep, DeployPhaseSnapshot snapshotToProcess) in d:\v2.0\P1\_work\11\s\ReleaseManagement\Service\ReleaseManagement2\Server\Processors\DeployPhaseOrchestrator.cs:line 501
at Microsoft.VisualStudio.Services.ReleaseManagement.Server.Processors.DeployPhaseOrchestrator.InvokeRunner(Release release, ReleaseEnvironmentStep deployStep, ReleaseEnvironment releaseEnvironment, DeployPhaseSnapshot snapshotToProcess, Func`5 runDeployPhase, Action`4 acceptStep, Action`3 rejectStep, Action`4 handleException) in d:\v2.0\P1\_work\11\s\ReleaseManagement\Service\ReleaseManagement2\Server\Processors\DeployPhaseOrchestrator.cs:line 472
Exception: Microsoft.TeamFoundation.DistributedTask.Pipelines.PipelineValidationException
我创建了一个新的服务连接。即使更改了连接,管道释放也会失败,并显示相同的错误和GUID。
其他人也遇到同样的问题吗?先前的服务连接使用的是预先创建的服务主体。在Azure ARM服务连接中似乎已经无法向Azure DevOps告诉我们特定的服务主体的功能...因此,我让它创建了一个新的服务主体。但是,该计划失败了,使用了相同的GUID参考和所有内容。
我想知道这是AzureDevOps中的问题还是由于AzureDevOps更改而导致的TerraformCLI任务中的问题。