Jenkins 构建被删除
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
工作区是一个临时的东西——你不应该在那里存储构建工件。
相反,您应该告诉 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.