简体   繁体   English

将Jenkins CI用于Qt项目

[英]Use Jenkins CI for Qt projects

I'm trying to use Jenkins for some project I have written in Qt framework. 我正在尝试将Jenkins用于我在Qt框架中编写的一些项目。

There is qmake plug-in for Jenkins in Jenkins wiki page, although this plug-in doesn't exist in Jenkins plug-in list. Jenkins wiki页面中有Jenkins的qmake插件 ,尽管Jenkins插件列表中不存在此插件。

I've looked for .hpi file for qmakebuilder plug-in, couldn't find it though. 我找了qmakebuilder插件的.hpi文件,但是找不到它。 So I download the source code from the given repository, tried to compile it as described in Jenkins wiki ... but I get list of error indicating java.util.NoSuchElementException. 所以我从给定的存储库下载源代码,尝试按照Jenkins wiki中的描述编译它...但是我得到了错误列表,表明java.util.NoSuchElementException。

Any of you guys have used this plug-in? 你们中的任何人都使用过这个插件吗? or any other Jenkins plug-in to compile Qt projects with? 或任何其他Jenkins插件来编译Qt项目?

First of all, my JAVA_HOME variable was not pointing at the right folder ie JDK folder and it was set to JRE which caused the maven to not work properly. 首先,我的JAVA_HOME变量没有指向正确的文件夹,即JDK文件夹,它被设置为JRE,导致maven无法正常工作。

But after fixing that, I was still getting some compilation error. 但在修复之后,我仍然遇到了一些编译错误。

Finally, I asked Jenkins people and realized for some reason qmakebuilder is not compatible with JDK 7. Therefore, I download the JDK 6 compile the code with that version and it got compiled just fine. 最后,我问Jenkins的人并且由于某种原因意识到qmakebuilder与JDK 7不兼容。因此,我下载JDK 6编译该版本的代码并且编译得很好。 I got the hpi file in the target folder. 我在目标文件夹中获得了hpi文件。

Plus, the hpi file for this plug-in NOW can be find here. 另外,这个插件现在的hpi文件可以在这里找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM