Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5639

Missing modules in deploying to maven repository in Incremental build

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • deploy-plugin
    • 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.

          [JENKINS-5639] Missing modules in deploying to maven repository in Incremental build

          Andrew Bayer added a comment -

          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.

          Andrew Bayer added a comment - 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.

          kutzi added a comment -

          is the same as JENKINS-5121

          kutzi added a comment - is the same as JENKINS-5121

            Unassigned Unassigned
            bjansen bjansen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: