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

Current directory not restored after leaving dir() step block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • pipeline
    • None

      After updating jenkins to 2.324 we encounter a massive issue with the dir step. In our build we have the following:

      ...
      stage {
        deleteDir() // Initially Clean workspace
        checkout scm
        bat 'make'
        dir('build') {
          stash('result')
        }
        deleteDir() // Cleanup workspace
      }
      ...
      

      In previous versions, the last deleteDir() line delete the whole workspace directory with all contents. After update we observe, that instead the "build" directory is removed.

            Unassigned Unassigned
            amesser Andreas Messer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: