-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.19.3
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?