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

Pipeline dir('foo') block creates foo? folder

XMLWordPrintable

      when running below

      dir('foo') {

        sh "touch test.txt"

      }

      in workspace I have foo folder what I had checked out, however, pipeline ends up creating a "foo?" adjacent to foo. And the touch operation happens in the "foo?" folder.

      the above snippet is in a global-shared-library.

      I am running Jenkins 2.73.3
      workflow-basic-steps: 2.6

      workflow-cps-global-lib: 2.9

       

      I am running a single build manually so no concurrent builds are being triggered.

            Unassigned Unassigned
            mohit_dharamshi Mohit Dharamshi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: