我尝试使用天蓝色的devops创建我的第一个CI / CD管道。我的构建,测试和发布任务运行良好,但是我在从蔚蓝的密钥库中获取机密时遇到了问题:
##[error]Error: No package found with specified pattern: d:\a\1\s\**\*.zip
在我的Azure Key Vault中,我有一个秘密,名为“ testVault”。我想在日志控制台中打印它,以检查它是否有效。这是我的整个Yaml文件:
trigger:
- master
pool:
vmImage: 'vs2017-win2016'
variables:
buildConfiguration: 'Release'
steps:
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)'
--TEST TASK SKIPPED
- task: DotNetCoreCLI@2
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output
$(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: AzureRmWebAppDeployment@3
inputs:
azureSubscription: 'BudgetAppARMServiceConnection'
WebAppName: 'HomeBudgetApp'
- script: echo $(testVault)
displayName: 'testvault'
很遗憾,我收到错误消息:
Got connection details for Azure App Service:'HomeBudgetApp'
##[error]Error: No package found with specified pattern:
d:\a\1\s\**\*.zip
Successfully updated deployment History at