Azure Devops通过从Bitbucket推送标签触发管道 [英] Azure Devops trigger pipeline with pushing tags from Bitbucket

查看:73
本文介绍了Azure Devops通过从Bitbucket推送标签触发管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的项目使用BitBucket,并且想知道推送标签是否可以触发BitBucket的管道.我看到的所有教程都在使用Github.如果有人成功使用BitBucket做到了这一点,您能给些建议吗?非常感谢

I am using BitBucket for my project and would like to know whether or not pushing tags can trigger pipeline from BitBucket. All the tutorials I saw are using Github. If anyone successfully did that with BitBucket, can you please give some advice? Thanks a lot

这是我对管道的配置(遵循

Here is my configuration of pipeline (following the discussion in https://developercommunity.visualstudio.com/content/problem/656727/build-pipeline-trigger-from-git-tag-is-not-working.html) trying to trigger with tag push

trigger:
  tags:
    include:
      - v*
      - refs/tags/v*
  branches:
    include:
      - refs/tags/v*
    exclude:
      - refs/heads/*
      - refs/remotes/*

推荐答案

很抱歉,对于Azure Devops,Bitbucket的标记属于外部git标记.到目前为止,Azure Devops的CI触发器不适用于External Git.git poll作业仅检索以" refs/heads "开头的裁判.

Sorry to say that for Azure Devops, the tag of Bitbucket is belong to the external git tag. And until now, the CI triggers of Azure Devops does not work for External Git. The git polling job only retrieves refs that start with "refs/heads."

这是迄今为止应该实现的一个很好的功能,但是考虑到轮询产品组所存在的所有问题,这并不是优先考虑的事情.

This is a good feature that should be achieve until now, but considering all the issues around polling the product group have, this is not high priority.

在我们的官方开发人员社区中,存在一个从问题转换而来的功能建议:

In our official Developer Community, there has one feature suggestion exists which converted from question: External Git Pipeline Builds not being triggered for updates to tags. You can vote and comment it. And when it has enough votes, the product group will consider it and will take it as plan.

这篇关于Azure Devops通过从Bitbucket推送标签触发管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆