在Jenkins应用程序之前始终构建库? [英] Always build library before application in Jenkins?
问题描述
我们有两个版本 A 和 B ,其中 A 是取决于图书馆的应用程序 B 。两者都是Qt项目。
Jenkins每15分钟轮询一次SCM。有时,我发生 A 和 B ,但 A 的计时器在 B 的计时器之前结束。因此,应用程序使用旧库构建,这导致构建失败。现在我正在寻找一种方法告诉Jenkins B 必须在 A 开始之前构建。但是,只有在成功构建之后才能建立。
We're having two builds A and B, where A is an application which depends on library B. Both are Qt projects. Jenkins polls the SCM every 15 minutes. Sometimes it happens that I commit A and B but the timer of A ends before the timer of B. So the Application gets build with an old library, which causes the build to fail. Now I'm looking for a way to tell Jenkins that B has to be built before the build of A starts. However, it's only possible to build something after a successful build.
有没有简单的解决方案或者我们只是搞砸了我们的构建过程?
Is there a simple solution or have we just messed up our build process?
推荐答案
有一个参数化触发器插件,它启用Trigger / call
builds
There is a Parameterized Trigger Plugin, which enables "Trigger/call builds on other projects" in "Add build step" menu.
http://stackoverflow.com/q/5701697/366299
这篇关于在Jenkins应用程序之前始终构建库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!