云蜜蜂 + PlayFramework +蚀

发布于 2024-12-11 02:28:13 字数 687 浏览 0 评论 0原文

我想从 Eclipse 为 PlayFramework 项目开发和管理我的 DEV@CloudBees 和 RUN@CloudBees 工作区,并且我必须在几台不同的 PC 上使用它。我正在使用 Cloudbees SVN 存储库、Jenkins CI 解决方案、数据库……一切。

我为 Eclipse 安装了 CloudBees 和 PlayFramework 插件,创建了我的 CloudBees 帐户、SVN 存储库、项目、Jenkins 作业和数据库。我已经创建了我的 Play 项目,并使其黯然失色。

我理解并测试了目标工作环境的每个组件,但我未能使它们顺利地协同工作。

1-我见过一些 CloudBees 的 Play 模块,但它仅适用于命令行使用。有一个不错的 Eclipse 插件包装器吗?

2-我在编写 build.xml 时遇到一些问题,特别是在引用 PlayFramework 库时,因为我无法使用本地安装,因为它无法在 Jenkins 上运行。

3-如何从 Eclipse 部署到 RUN@CloudBees?如果我使用 CloudBees 插件,它不会打包 PlayFramework 库。

4-如何将 Play 的测试功能集成到 Jenkins 中?

我有很多问题,但现在已经足够了:) 顺便说一下,PlayFramework 很棒,CloudBees 是一个拯救生命的工作环境。

感谢您的帮助。

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.

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

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

发布评论

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

评论(4

薄凉少年不暖心 2024-12-18 02:28:14

联系支持人员,他们真的很有帮助......而且速度很快!

他们确实有一个 Jenkins 插件,要求将其安装在您的服务器上。我使用该命令

play auto-test

,它工作正常。您将需要一些代码来根据 .failures 文件检查故障。检查此链接

Contact the support, they are really helpful..and fast!

they do have a plugin for Jenkins, ask to get it installed on your server..I use the command

play auto-test

and it works fine. You'll need some code to check for failures depending on the .failures files. check this link

英雄似剑 2024-12-18 02:28:14

我从 Cloudbees 支持部门收到了非常快速且高效的答复。

它证实了mericano1和Ryan所说的(感谢他们)。

CloudBees Jenkins 服务允许用户安装一些自定义插件,例如 Play!框架一!

将其添加到核心配置后,您可以添加新的构建步骤“Play!”在您的作业配置中并设置 Play!您需要的命令。例如“clean”,然后是“deps --sync”,最后是“auto-test”。如果需要二进制文件,您还可以添加 war -o toto.war。

您可以选中“播放!自动测试报告”复选框。您将在构建结果页面的左侧菜单中看到一个附加图标“播放!测试结果”,以观看...播放测试结果页面(令人难以置信:))。

仍然在作业配置中,您可以检查“部署到CloudBees”功能。我没有尝试过,但我认为玩! libs 问题不会得到解决。因此,请在您的 Play 中添加 cloudbees 0.2.2 插件!项目依赖项.yml,您可以在构建步骤中添加 bees:app:deploy 命令。

对于 Eclipse,一旦您配置了 Jenkins 作业,CloudBees 插件就可以发挥全部功能。但你应该继续玩!本地开发的过程,而不是本地运行 DEV@/CloudBees。

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.

南风起 2024-12-18 02:28:14

1) cloudbees 模块仅适用于命令行。没有 Eclipse 插件(据我所知)。但是,命令行非常简单 play bees:app:deploy

2) 此处不确定

3) 部署 Play Framework 应用程序与部署 J2EE 有点不同(因为必要的 play war 命令),因此可能无法从 Eclipse 将 Play 应用程序部署到 Cloudbees。但是,请参见 1)。

4)我认为Jenkins有一个Play插件。我从未在 Cloudbees 上/之外使用过它。

好的,我对问题 2 和 4 提供了一些帮助,不幸的是,答案可能不是您所希望的。我建议在部署时切换到命令行。

1) The cloudbees module is only for the command-line. There is no Eclipse plugin (that I know of). However, the command-line is really simple play bees:app:deploy

2) Not sure here

3) Deploying Play Framework Apps is a bit different from deploying J2EE (because of the necessary play war command), thus deploying a Play app to Cloudbees from Eclipse might not be possible. However, see 1).

4) I think there is a Play plugin for Jenkins. I have never used it on/off Cloudbees.

OK, so I provided some help on questions 2 and 4, and unfortunately, the answers may not have been what you hoped. I suggest switching to command-line when it is time to deploy.

╄→承喏 2024-12-18 02:28:14

在 Eclipse 中,单击外部工具菜单并创建一个新命令,如 Ryan 在 1) 中所述。
然后您只需单击外部工具图标即可。

In eclipse click on external tools menu and create a new command as noted by Ryan in 1).
then you can simply click on the external tool icon.

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