Uploaded image for project: 'Maven Build Cache Extension'
  1. Maven Build Cache Extension
  2. MBUILDCACHE-71

buildinfo.xml should be stored after storing the project's artifacts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.2.0
    • None

    Description

      In certain failure cases it's possible that only part of a module artifacts get stored in the local and remote storage. In that case if buildinfo.xml got stored, the extension will later incorrectly attempt to restore the partially cached build.

      Because buildinfo.xml is used as an indication that the cached artifacts exist, I propose to reorder the logic in 

      CacheControllerImpl.save()

       so that 

      localCache.saveBuildInfo(cacheResult, build);

      will happen after the project's artifacts are stored.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              hermes Amir Hadadi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: