简体   繁体   English

GoAgent中是否可以删除舞台历史记录?

[英]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进行程序包部署,我想知道是否有任何可能的方法可以删除GoAgentStage 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: 这是该区域的图像:

在GoCD中配置XML

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.

相关问题 有没有办法在 Gitlab CI/CD 中制作一个内部有两个阶段的阶段? - Is there any way to make in Gitlab CI/CD a stage with two stages inside? 有什么方法可以在内部将Bitbucket集成到云和Jenkins - Is there any way to integrate Bitbucket on cloud and Jenkins On premise 是否可以使用jenkins连续部署AWS按需实例? - Is there any way of using jenkins continuous deployment for AWS on demand instances? 如何在Jenkins Workflow中重复一个阶段 - How to repeat a stage in Jenkins Workflow gocd-代理从不做第二阶段的工作 - gocd - Agent never doing second pipeline stage/job 对于后端 NodeJS 应用程序,我是否应该跳过 AWS CodePipeline 上的构建阶段 - Should I skip the Build stage on AWS CodePipeline for a backend NodeJS application 仅在前一阶段完成时运行管道阶段 - gitlabci - Run pipeline stages when only the predecessor stage is completed - gitlabci 有没有一种方法可以在构建之前使用TeamCity删除Target Server中的目录? - Is there a way to delete directories in Target Server using TeamCity before build? 如何配置Jenkinsfile,以使中止/超时阶段结束管道并标记生成为通过? - How to configure Jenkinsfile so that an aborted/timed out stage ends pipeline and marks build as pass? 如何将 Docker 映像标签传递给 Spinnaker webhook 以触发具有 *Run Job* 阶段的管道 - How do I pass a Docker image tag to Spinnaker webhook to trigger a pipeline with a *Run Job* stage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM