【发布时间】:2020-09-18 07:04:23
【问题描述】:
在我的 azure devops 管道中设置 github 发布任务时遇到问题。管道 yml 如下所示(如果有任何用途,它适用于多框架 nuget 包):
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
workspace:
clean: all
...
- task: GitHubRelease@1
inputs:
gitHubConnection: '**/**'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
tagPattern: 'v*'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
我输入了标签的确切名称(例如 tagPattern: 'v1'),它工作正常。如果我使用上面的标签模式并推送相同的标签 v1,它只会给我##[warning]Release will not be created as the tags for the target commit do not match with the given tag pattern 警告。
我尝试了其他一些正则表达式模式,但似乎模式匹配根本不起作用,只指定了确切的 git 标记名称。所以我的问题是,是否有一些我不知道的已知问题,或者我错过了我应该在这里做的事情?
【问题讨论】:
标签: git azure-devops azure-pipelines azure-pipelines-build-task github-release