Liferay 6.2 maven插件build-css需要很长时间来解析Jenkins的css

时间:2016-08-30 04:57:48

标签: maven jenkins sass liferay

Liferay 6.2 maven插件build-css需要很长时间来解析Jenkins完整版本的css。 使用" mvn clean install"从命令行调用时,相同构建所花费的时间要少得多。命令。

来自Jenkins v1.613 Full Build

Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/application.css in 16474 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/aui.css in 39535 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/base.css in 5560 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/custom.css in 12911 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/dockbar.css in 6899 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/extras.css in 8634 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/layout.css in 126 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/main.css in 62007 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/navigation.css in 5947 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/portlet.css in 7052 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/uniform.default.css in 775 ms

从命令行

Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/application.css in 11293 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/aui.css in 8813 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/base.css in 649 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/custom.css in 1141 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/dockbar.css in 692 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/extras.css in 1003 ms
Parsed /opt/jenkins_home/workspace/project_name/themes/some-theme/target/some-theme-1.0/css/layout.css in 28 ms

任何人都知道解决这个问题的方法吗? 我们确保JenkinsTomcat当时没有执行垃圾收集。

1 个答案:

答案 0 :(得分:0)

我猜你是从同一台机器调用两个执行器,这样你就可以丢弃网络问题了。如果响应时间变得如此不同,可能两次执行之间存在一些差异。 我将开始在Jenkins中为您的构建过程自定义内存设置。看看https://wiki.jenkins-ci.org/display/JENKINS/Builds+failing+with+OutOfMemoryErrors,看看它是否有帮助。

在您的情况下,您正在构建主题,但默认情况下也会为portlet启用“build-css”目标。如果您不打算在portlet中包含自定义css,则最好禁用该目标,因为这需要很长时间。