如何重置VSTS计数器? [英] How to reset VSTS counter?

查看:77
本文介绍了如何重置VSTS计数器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要重置VSTS计数器.我看不到通过UI进行此操作的任何方法.有一种方法可以通过直接调用获取定义 REST API.不幸的是,无论我做什么获取定义调用不会返回

We have a need to reset VSTS counter. I do not see any way to do this through UI. There is a way to do it by directly invoking reset build counter REST API, but in order to do this, you need to know the counter id, which you should be able to find out by invoking get a definition REST API. Unfortunately, no matter what I do get a definition call does not return build definition counter.

我想念什么?

推荐答案

Microsoft的Scott Dallamura撰写了

Scott Dallamura from Microsoft wrote this thread:

计数器功能是实验性的,已于2007年3月取消 今年.我不确定它如何进入文档,但是 我会确保将其清理干净.

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.

I also didn't success to get the counterId in an API call.

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

At workaround, you can reset the revision of the build number if you change the build definition name, you can just add/remove a character.

这篇关于如何重置VSTS计数器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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