Skip to content

Commit 4fb628c

Browse files
committed
git config longpaths for all users
1 parent c375743 commit 4fb628c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

windows/nanoserver/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ USER $user
112112
RUN New-Item -Type Directory $('{0}/.jenkins' -f $env:AGENT_ROOT) | Out-Null ; `
113113
New-Item -Type Directory $env:AGENT_WORKDIR | Out-Null
114114

115-
RUN git config --global core.longpaths true ; `
116-
git config --system core.longpaths true ; `
115+
RUN git config --system core.longpaths true ; `
117116
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -type DWord -Value 1
118117

119118
VOLUME "${AGENT_ROOT}"/.jenkins

windows/windowsservercore/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ USER $user
105105
RUN New-Item -Type Directory $('{0}/.jenkins' -f $env:AGENT_ROOT) | Out-Null ; `
106106
New-Item -Type Directory $env:AGENT_WORKDIR | Out-Null
107107

108-
RUN git config --global core.longpaths true ; `
109-
git config --system core.longpaths true ; `
108+
RUN git config --system core.longpaths true ; `
110109
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name LongPathsEnabled -type DWord -Value 1
111110

112111
VOLUME "${AGENT_ROOT}"/.jenkins

0 commit comments

Comments
 (0)