To match this line:

      stderr: fatal: Unable to create 'E:/Jenkins/workspace/builds/repo/project/component/.git/shallow.lock': File exists.
      

      I have the indicator:

      stderr: fatal: Unable to create 'E:\/Jenkins\/workspace\/builds\/([^\/]+)\/([^\/]+)\/([^\/]+)\/\.git\/shallow\.lock': File exists\.
      

      And description:

      Run the following command to delete the lock file from the Jenkins server and start the build again.
      del \\\\Jenkins\\E\$\\Jenkins\\workspace\\builds\\${1,1}\\${1,2}\\${1,3}\\.git\\shallow.lock
      

      Which generates the following output:

      Run the following command to delete the lock file from the Jenkins server and start the build again.
      del \\Jenkins\E$\Jenkins\workspace\builds${1,1}${1,2}${1,3}\.git\shallow.lock
      

      But I expect:

      Run the following command to delete the lock file from the Jenkins server and start the build again.
      del \\Jenkins\E$\Jenkins\workspace\builds\repo\project\component\.git\shallow.lock
      

      It appears to be using the escaped `\` to escape the `$`. How do I get around this?

          [JENKINS-40582] Unable to use ${I,G} in a path string

          There are no comments yet on this issue.

            t_westling Tomas Westling
            handefood Mark Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: