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

Shared Library cache is broken when build is aborted during scm retrieve

      Steps to reproduce:

      1. start plugin
      2. configure Global pipeline libraries to use cache
      3. create a pipeline to use Shared library
      4. start the pipeline and aborted during scm retrieve process
      5. build logs displays an error
      6. start the same pipeline again

      Expected: shared library retrieved from scm and pipeline success

      Actual: pipeline fails with error: `Library global-pipeline-library expected to contain at least one of src or vars directories`

      because `global-libraries-cache` contain cache but it's empty.

          [JENKINS-72996] Shared Library cache is broken when build is aborted during scm retrieve

          Dmitry Platonov created issue -
          Dmitry Platonov made changes -
          Attachment New: log [ 62441 ]
          Dmitry Platonov made changes -
          Attachment Original: log [ 62441 ]
          Dmitry Platonov made changes -
          Attachment New: log-aborted-build [ 62442 ]
          Dmitry Platonov made changes -
          Attachment New: log-next-after-abort-build [ 62443 ]
          Dmitry Platonov made changes -
          Summary Original: Cache is broken when build is aborted during scm retrieve New: Shared Library cache is broken when build is aborted during scm retrieve
          Dmitry Platonov made changes -
          Description Original: Steps to reproduce:
           # start plugin
           # configure Global pipeline libraries to use cache
           # create a pipeline to use Shared library
           # start the pipeline and aborted during scm retrieve process
           # build logs displays an error
           # start the same pipeline again

          Expected: shared library retrieved from scm and pipeline success

          Actual: pipeline fails with
          Library global-pipeline-library expected to contain at least one of src or vars directories
          because `global-libraries-cache` contain cache but it's empty.
          New: Steps to reproduce:
           # start plugin
           # configure Global pipeline libraries to use cache
           # create a pipeline to use Shared library
           # start the pipeline and aborted during scm retrieve process
           # build logs displays an error
           # start the same pipeline again

          Expected: shared library retrieved from scm and pipeline success

          Actual: pipeline fails with error: `Library global-pipeline-library expected to contain at least one of src or vars directories`

          because `global-libraries-cache` contain cache but it's empty.
          Markus Winter made changes -
          Link New: This issue duplicates JENKINS-69573 [ JENKINS-69573 ]
          Markus Winter made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            pldi23 Dmitry Platonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: