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

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

问题描述

我们需要重置 VSTS 计数器.我看不到通过 UI 执行此操作的任何方法.有一种方法可以通过直接调用 重置构建计数器 REST API,但是为了做到这一点,您需要知道计数器ID,您应该能够通过调用获取定义 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.

我错过了什么?

推荐答案

来自微软的 Scott Dallamura 写了 这个线程:

Scott Dallamura from Microsoft wrote this thread:

计数器功能是实验性的,并于 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天全站免登陆