-
Improvement
-
Resolution: Duplicate
-
Major
-
None
I have two modules (A and B). B depends on A
I set up as incremental build for maven. As post-build task I selected Deployment to maven repository.
(1) One checks-in to A and B, the build fails on module B and both modules are not deployed.
(2) Someone else checks in to A, the build does A and B, fails on B so A and B are not deployed.
(3) The first one fixes his code and checks in on B. The build does only B, success and only B is deployed.
But now module A is never deployed. We have an old version of A and a new version of B in the maven repository.
In my opinion A should have been deployed in step 3 also. It is no option to do it in step 2, because A will already have changes from step 1, and B will be out of sync in the repository.
- duplicates
-
JENKINS-5121 Deploy all built modules on success, including from previous failed builds
-
- Resolved
-
- is related to
-
JENKINS-5764 incremental builds leave modules unbuilt upon failure
-
- Resolved
-
Since it only actually builds B in step 3, the post-build deployment only has access to the artifact from B. If you want to have both deployment and incremental builds in this use case, you should probably use Maven's own deploy plugin, rather than the post-build deployment task. If you want to use Hudson's post-build deployment logic, you probably don't want to use the incremental build option.