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

This issue is archived. You can view it, but you can't modify it. Learn more

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.

            Assignee:
            Unassigned
            Reporter:
            Mohit Dharamshi
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: