简体   繁体   English

通过哈德森倾听和建立

[英]Making ears and build through hudson

We have more then 250 applications in our project . 我们的项目中有250多个应用程序。 Till now we were doing there full build (ie packaging making ear) through ant scripts which were suppose to run on AIX build machines where we had the ksh scripts to build ear and they were supposed to be ready at a place on the AIX server itself. 到现在为止,我们一直在通过ant脚本进行完整构建(即包装耳朵),这些脚本应该在AIX构建机器上运行,在那里我们可以通过ksh脚本构建ear,并且应该在AIX服务器本身的某个位置上将它们准备好。

But now we have started mavenizing our applications using pom through hudson so we need a solution as to how to build ears for these applications through hudson as now onwards we can't use AIX server to build ear of applications.When we build applications one by one we have the ear for that component only but it would be tiring to build one by one as we have 250 plus applications. 但是现在我们已经开始通过hudson使用pom来修饰我们的应用程序,因此我们需要一个解决方案,以解决如何通过hudson来为这些应用程序构建耳朵的问题,因为从现在开始,我们不能使用AIX服务器来构建应用程序的耳朵。一个应用程序我们只需要该组件,但是由于我们拥有250多个应用程序,因此一件一件地构建会很累。 I have seen a groovy scripts which runs through jenkins but dont know exactly how it works and does groovy script also need any AIX server to run ?? 我已经看到了通过jenkins运行的groovy脚本,但是不确切知道它是如何工作的,并且groovy脚本是否还需要任何AIX服务器才能运行? I also have a thinking that can we make a dependency tree and include it in a parent pom through which we can trigger build so that components get build one by one starting from the lowest dependent component.. is that possible or suggest sumthing else??? 我也有一个想法,我们可以制作一个依赖关系树,并将其包含在父pom中,通过它我们可以触发构建,从而使组件从最低的依赖组件开始一个一个地构建。这是可能的还是建议其他方法? ?

Suggest something so taht we can build ears and zips of our application through hudson. 提出一些建议,以便我们可以通过hudson构建应用程序的耳朵和拉链。

You can create an ear file via the maven-ear-plugin . 您可以通过maven-ear-plugin创建一个ear文件。 If you like to make zip files you can use the maven-assembly-plugin to create archives like zip, tar, tar.gz etc. If you are using Hudson you can start several builds in parallel. 如果您想制作zip文件,则可以使用maven-assembly-plugin创建zip,tar,tar.gz等档案。如果您使用的是Hudson,则可以并行启动多个构建。

If your application has many modules which depend on each other it might worth thinking about multi-module builds to see if you can cut the modules appropriately and build them in one go. 如果您的应用程序具有许多相互依赖的模块,则可能值得考虑使用多模块构建,以查看是否可以适当地削减模块并一次性构建它们。

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

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