问题描述
我想从Eclipse开发和管理我的DEV @ CloudBees和RUN @ CloudBees工作空间,用于PlayFramework项目,我将不得不从几个不同的PC处理它。我正在使用Cloudbees SVN信息库,Jenkins CI解决方案,数据库...一切。
我为Eclipse安装了CloudBees和PlayFramework插件,创建了我的CloudBees帐户,SVN存储库,项目,Jenkins工作和数据库。我已经创建了我的Play项目,将其删除。
我明白了,我已经测试了我目标工作环境的每个组件,但是我没有设法使它们顺利工作一起。
1-我已经看到一些CloudBees的播放模块,但只用于命令行使用。有没有一个很好的Eclipse插件包装这个?
2-我在编写build.xml时有一些问题,特别是在引用PlayFramework lib时,因为我不能使用本地安装在Jenkins上不起作用。
3-如何从Eclipse部署到RUN @ CloudBees?如果我使用CloudBees插件,它不会打包PlayFramework库。
4-如何使用Play的测试功能集成到Jenkins? p>
我有很多问题,但现在足够了:)顺便说一下,PlayFramework是非常棒的,CloudBees是一个拯救生命的工作环境。
感谢您的帮助。
它证实了mericano1和Ryan所说的(感谢他们)。
CloudBees Jenkins服务让用户安装一些自定义插件,如Play!框架一个!
将其添加到核心配置后,您可以添加一个新的构建步骤播放!在你的工作配置和设置播放!你需要的命令例如干净,然后deps --sync,最后自动测试。您还可以添加war -o toto.war,如果您需要二进制文件。
您可以查看播放!自动测试报告复选框。您将在构建结果页面的左侧菜单中添加一个附加图标播放测试结果,以观看...播放测试结果页面(unbelieavable:))。
仍然在作业配置中,您可以查看部署到CloudBees功能。我没有尝试,但我认为播放! libs问题不会解决。所以,添加云贝0.2.2插件在你的Play!项目依赖性.yml,您可以在构建步骤中添加蜜蜂:app:deploy命令。
对于Eclipse,CloudBees插件完全是功能完成的,一旦配置完成你的詹金斯工作。但你应该留在Play!流程开发本地而不是Run DEV @ / CloudBees Local。
I want to develop and manage my DEV@CloudBees and RUN@CloudBees workspace from Eclipse, for a PlayFramework project, and I will have to work with it from several different PC. I'm using the Cloudbees SVN repository, Jenkins CI solution, database ... everything.
I installed CloudBees and PlayFramework plugins for Eclipse, created my CloudBees account, SVN repository, project, Jenkins Job and database. I've created my Play project, eclipsified it.
I understand and I have tested each component of my targeted working environment but I didn't manage to make them work smoothly together.
1- I've seen some Play modules for CloudBees but it is only for command-line use. Is there a nice Eclipse plugin wrapper for this ?
2- I have some issues writing the build.xml, especially when referencing the PlayFramework libs, because I can not use the local installation as it won't work on Jenkins.
3- How can I deploy to RUN@CloudBees from Eclipse ? If i use the CloudBees plugin, it doesn't package the PlayFramework libs.
4- How can I use the testing features of Play to be integrated in Jenkins ?
I have a lot of questions but it is enough for now :) By the way, PlayFramework is awesome and CloudBees a life-saving work environment.
Thank you for your help.
I received a very quick and efficient answer from Cloudbees support.
It confirms what mericano1 and Ryan said (thanks to them).
The CloudBees Jenkins service let users install some customization plugins like the Play! Framework one !
After adding it to the core configuration, you can add a new build step "Play!" in your job configuration and set the Play! commands you need. For example "clean", then "deps --sync" and finally "auto-test". You can also add the war -o toto.war if you need the binary.
You can check the "Play! auto-test reports" checkbox. You'll have an additional icon "Play! Test Result" in the left menu of the build result page to watch the ... Play test result page (unbelieavable :)).
Still in the job configuration, you can check the "Deploy to CloudBees" features. I didn't tried but I think the Play! libs issues wouldn't be resolved. So, add the cloudbees 0.2.2 plugin in your Play! project dependencies.yml, and you can add the bees:app:deploy command in your build step.
For Eclipse, the CloudBees plugin is fully functionnal, once you have configurated your Jenkins job. But you should stay with the Play! process to develop locally and not the Run DEV@/CloudBees Local.
这篇关于CloudBees + PlayFramework + Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!