azure-devops – 如何重置VSTS计数器?

我们需要重置VSTS计数器.我没有看到任何方法通过UI做到这一点.有一种方法可以通过直接调用
reset build counter REST API来实现,但为了做到这一点,您需要知道计数器ID,您应该能够通过调用
get a definition REST API来找到它.不幸的是,无论我做什么
get a definition通话都不会返回
build definition counter.

我错过了什么?

最佳答案 微软的Scott Dallamura写了
this个帖子:

the counters feature was experimental and removed back in March of
this year. I’m not sure how it even got into the documentation, but
I’ll make sure it gets cleaned up.

我也没有成功在API调用中获取counterId.

解决方法是,如果更改构建定义名称,则可以重置构建号的修订版,只需添加/删除字符即可.

点赞