Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Always build library before application in Jenkins?

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?

like image 568
atamanroman Avatar asked Nov 23 '11 15:11

atamanroman


2 Answers

There are some open bugs in Jenkins related to project references and messed build order. See this bug (or this one). See comments for possible workarounds.

like image 107
Ludwo Avatar answered Nov 19 '22 05:11

Ludwo


There is a Parameterized Trigger Plugin, which enables "Trigger/call builds on other projects" in "Add build step" menu.

https://stackoverflow.com/q/5701697/366299

like image 3
atamanroman Avatar answered Nov 19 '22 06:11

atamanroman