[英]Is there any possible way to delete stage history in GoAgent?
I am using GoCD
for package deployment and I would like to know if there are any possible ways to delete the Stage History
in GoAgent
. 我正在使用
GoCD
进行程序包部署,我想知道是否有任何可能的方法可以删除GoAgent
的Stage History
。
I am asking this because the stage label was increasing to some extent while we are testing the pipelines and because of this we could not get the exact count of automated deployment. 我之所以这样问,是因为在测试管道时,阶段标签在某种程度上有所增加,因此,我们无法获得自动部署的确切数量。
Can anyone let me know if I could remove all the stage history without causing any confusions to the process? 谁能告诉我是否可以删除所有阶段历史记录而不会造成任何混乱?
I haven't stumbled across an official way to delete Stage History, but I have found a "manual" way to accomplish this. 我没有偶然发现删除“舞台历史记录”的官方方法,但是我找到了一种“手动”方法来完成此操作。
You'll need to rename your pipeline to have your stage history disappear. 您需要重命名管道,以使舞台历史记录消失。 Now you'll notice that if you go into your pipeline administration, the ability to rename a pipeline is not allowed.
现在您将注意到,如果您进入管道管理,则不允许重命名管道。 Example:
例:
So to circumvent this, you can go into your config.xml found under the /go/admin/config_xml
path. 因此,为了避免这种情况,您可以进入
/go/admin/config_xml
路径下的config.xml。 Here's an image of that area: 这是该区域的图像:
From there if you edit your pipeline and rename it, all of your Stage History will be deleted. 如果您在其中编辑管道并对其进行重命名,则将从此处删除所有“阶段历史记录”。
If you're okay with the new pipeline name you're done. 如果您对新的管道名称没问题,就可以完成。 If you want to return to the original name, you'll likely have to delete the previously named pipeline directories, otherwise your history may come back (I say "likely", because I've never gone back to the original name before, so this part is theoretical ;)
如果您想返回原始名称,则可能必须删除以前命名的管道目录,否则您的历史记录可能会回来(我说“可能”,因为我之前从未回过头来,所以这部分是理论上的;)
The original-named pipeline directories are going to be under the following directory paths: 原始命名的管道目录将位于以下目录路径下:
<path-to-go>/go-server/artifacts/pipelines/<old-pipeline-name>/*
<path-to-go>/go-server/artifacts/cache/<old-pipeline-name>/*
<path-to-go>/go-server/db/shine/rdf-files/<old-pipeline-name>/*
You ought to be able to delete those, and then rename your pipeline again back to your original name (obviously take proper backups and test before you delete those.) 您应该能够删除这些文件,然后再次将管道重命名为原始名称(显然,在删除那些文件之前,请进行适当的备份并进行测试。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.