Jenkins 花费不同的时间来构建相同的文件

发布于 2025-01-03 07:11:25 字数 530 浏览 5 评论 0原文

我已经开始使用詹金斯来构建我的项目。我昨天构建了我的项目,花了 26 秒来构建我的 Flex sdk。我今天构建了相同的文件,花了 19 分钟来构建相同的文件。谁能解释这是怎么发生的?我正在尝试优化我的构建脚本,但我无法理解我的构建文件或詹金斯是否有问题。

这是花费 19 分钟的构建这是花费 19 分钟的构建

这是花费 26 秒的构建 在此处输入图像描述

这是我之后运行的第二个构建第一个和MXMLC 编译的一部分大约花费了 34 分钟中的 27 分钟 在此处输入图像描述在此输入图像描述

I have started to use jenkins to build my project. I build my project yesterday and it took me 26 sec to build my flex sdk. I build the same file today and it took me 19 min to build the same file. Could anyone explain how this is happening ? I am trying to optimize my build scripts and I am not able to understand if there is something wrong with my build file or with jenkins.

This is the build that took 19 minThis is the build that took 19 min

This is the build that took 26 sec enter image description here

This is my second build running after the first one and the part of MXMLC Compiles took around 27 min out of the total 34 min
enter image description hereenter image description here

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

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

发布评论

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

评论(2

烟雨凡馨 2025-01-10 07:11:25

这种情况持续发生吗?当第二次构建发生时,您的系统是否可能过载?例如,正在运行备份或某些 CPU 密集型进程?

如果您安装 Jenkins 的 Timestamper 插件,您将能够看到哪些部分需要更长的时间。

Is this happening consistently? Was your system perhaps overloaded when the second build occurred? e.g. A backup running or some CPU-intensive process?

If you install the Timestamper plugin for Jenkins, you will be able to see which parts are taking longer.

合久必婚 2025-01-10 07:11:25

您的 Jenkins 系统是单独安装在一个盒子上吗?这是在 Windows 上吗?

在 Windows 系统上,文件可能会因各种原因而被锁定。我遇到了问题,只是因为我打开了一个 Windows 资源管理器窗口,指向 Jenkins 想要覆盖文件的目录。詹金斯僵住了,直到我关闭资源管理器窗口。这会是一个问题吗?

哪里的任务被延迟了?安装 Jenkins 时间戳插件,这将显示哪些任务花费了这么长时间。从那里,您可以稍微缩小调查范围。

Is your Jenkins system on a box all by itself? Is this on Windows?

On Windows systems, files can become locked for all sorts of reasons. I've had problems just because I had a Windows Explore window open up to a directory where Jenkins wanted to overlay a file. Jenkins froze up until I closed my Explorer window. Could this be an issue?

Where is the task being delayed? Install the Jenkins timestamper plugin, and that'll show you what tasks are taking so long. From there, you can narrow down your investigation a bit.

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