我正在关注 Microsoft 的 article 以使用 Azure 管道进行构建和发布。到达 this 部分并对以下代码感到困惑:
az batch application package create --application-id $(batchApplicationId)
--name $(batchAccountName)
--resource-group $(resourceGroupName)
--version $(batchApplicationVersion)
--package-file=$(System.DefaultWorkingDirectory)/$(Release.Artifacts.{YourBuildArtifactSourceAlias}.BuildId).zip
我在管道变量中配置了以下内容:
唯一需要做的就是配置包文件
据我所知,我只需要用我的工件源别名替换 YourBuildArtifactSourceAlias,我已经做到了。但是在部署发布管道时,出现以下错误:
.zip was unexpected at this time.
##[error]Script failed with exit code: 255
正如我们在此 screenshot 中所见,整个过程中唯一失败的部分是将包上传到创建的应用程序时,这是最后一步。
有人可以帮我吗?