I have two projects - A and B. B depends on A. A is built with a number (call it a build number). B needs to which number is in A at the time B builds.
Any ideas how to achieve this without any human intervention? FWIW the use case here is that A is software distributed by B (a WAR archive). A queries B for an updated build number, thus implementing "automatic updates". I'm trying to automate the setting of this number across the two projects but I've drawn a blank inside Jenkins for the moment. James