Jenkins 构建被删除

发布于 2025-01-05 09:39:20 字数 393 浏览 4 评论 0原文

我正在使用 Jenkins..指定存储库 URL 和凭据后,当我单击“立即构建”时,它会构建新的构建并将其作为 zip 文件存储在工作区中。.当我更改存储库 URL 时strong> 并给出无效的 url,构建失败。此后,如果我提供正确的存储库 URL,它会删除旧版本即使在更改存储库 URL 后,我也想保留旧版本。在构建历史记录中,它会显示所有构建详细信息,但如果我在指定无效 url(保存和构建)并后跟有效 url(保存和构建)后看到构建位置。它删除所有构建并检查代码。

即使在更改存储库 URL 后我也想保留旧版本 如何做到这一点?有什么想法吗?

谢谢。

I am using Jenkins..After specifying repository URL and credentials When i click build now, its building new build and store it as zip file in workspace.. When i change the repository url and giving invalid url, build fails. After this if i give correct repository url it deletes old builds.. I want to retain old builds even after altering the repository URL.. In build history it show all the build details but if i see the build location after specifying invalid url(save and build) and followed by valid url(save and build). it deletes all the builds and checks out the code.

I want to retain old builds even after altering the repository URL How to do this ?? any idea ?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝戈者 2025-01-12 09:39:20

工作区是一个临时的东西——你不应该在那里存储构建工件。

相反,您应该告诉 Jenkins 在每次构建后存档您的工件(即您的 zip 文件):在“构建后步骤”部分中选择“存档工件”。

然后,每个构建的 zip 文件将在 Jenkins 中该构建的网页上可见。

The workspace is a temporary thing — you should not be storing build artifacts there.

Instead, you should tell Jenkins to archive your artifacts (i.e. your zip file) after each build: select "Archive the artifacts" in the "Post-build steps" section.

Then the zip file from each build will be visible on the web page for that build in Jenkins.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文