如何在Jenkins中为每个作业设置JVM选项? [英] How to set a JVM option in Jenkins globally for every job?

查看:1735
本文介绍了如何在Jenkins中为每个作业设置JVM选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了一个新的JDK(1.7u9),我有一些非常奇怪的 VerifyError 在主题中我发现如果我使用 -XX:-UseSplitVerifier 魔术开关进行编译,它可以帮助我。



我想做的是在Jenkins中全局设置这个Java选项,但是没有找到任何配置。有人可以帮我怎么做?



我能够提出的最接近的事情是通过Maven设置参数,但是我必须为每个项目配置做这个 - 我想避免这样。 p>

提前感谢。

解决方案

$ c>管理Jenkins - > 配置系统,您可以在全局MAVEN_OPTS



这是一个有点不清楚是否要打开Jenkins容器本身的选项或仅运行在其中的作业,但如果后者和你只运行



干杯,


I've recently installed a new JDK (1.7u9), and I got some very strange VerifyErrors. In a thread I found that it could help me if I use a -XX:-UseSplitVerifier magic switch for the compilation.

What I would like to do is to set this Java option globally in Jenkins, but haven't found any configurations for it. Can someone help me out how can I do this?

The closest thing I was able to come up with is to set the argument through Maven, but I have to do it for each project configuration - and I'd like to avoid that.

Thanks in advance.

解决方案

Under the main menu item Manage Jenkins->Configure System you can set it in the box for Global MAVEN_OPTS.

It is a bit unclear whether you want the option turned on for the Jenkins container itself or only the jobs running in it, but if the latter and you're only running maven jobs, that's what I would do.

Cheers,

这篇关于如何在Jenkins中为每个作业设置JVM选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆