How to delay a Hudson build until its dependencies are built?

℡╲_俬逩灬. 提交于 2019-12-23 01:40:10

问题


Our build consists of two projects, a library project and a web front end project that depends on the library project.

The Hudson jobs are configured from the maven pom.xml files and the dependency appears on Hudson as downstream/upstream project. Both jobs use the "poll SCM" build trigger and everything works as intended when only one the projects changes.

The problem arises when a commit contains changes in both projects, so Hudson starts a build of both projects at the same time and usually the web project build fails because it is using an older version of the library project.

Can I configure Hudson to delay the execution of the web project build if there is a build running the library project?


回答1:


Isn't the web project and the other project located in a different area of the version control? ON the other hand you can define upstream or downstream dependencies and say only start if the build went well.



来源:https://stackoverflow.com/questions/4022354/how-to-delay-a-hudson-build-until-its-dependencies-are-built

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!