From 8ae09b0c251d4555a367c3ac2b09fac0a385cffd Mon Sep 17 00:00:00 2001 From: Andrey Koltsov Date: Thu, 18 Jul 2024 12:31:10 +0200 Subject: [PATCH] Remove plugins directory. (#167) --- .../windows/MinimalAgent/nanoserver/NanoServer1809.Dockerfile | 4 ++++ .../generated/windows/MinimalAgent/nanoserver/1809/Dockerfile | 4 ++++ .../generated/windows/MinimalAgent/nanoserver/1903/Dockerfile | 4 ++++ .../generated/windows/MinimalAgent/nanoserver/1909/Dockerfile | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/configs/windows/MinimalAgent/nanoserver/NanoServer1809.Dockerfile b/configs/windows/MinimalAgent/nanoserver/NanoServer1809.Dockerfile index 55ff5055..5c916c65 100644 --- a/configs/windows/MinimalAgent/nanoserver/NanoServer1809.Dockerfile +++ b/configs/windows/MinimalAgent/nanoserver/NanoServer1809.Dockerfile @@ -29,6 +29,10 @@ USER ContainerAdministrator RUN mkdir C:\\BuildAgent COPY TeamCity/buildAgent C:/BuildAgent +# Workaround for TW-87124 - Windows-based plugin directories receive incorrect case, causing their inability ... +# ... to load. The directory will be fetched from the server upon the first update with proper case. +RUN Remove-Item -Recurse -Force C:/BuildAgent/plugins + COPY scripts/*.cs /scripts/ SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] diff --git a/context/generated/windows/MinimalAgent/nanoserver/1809/Dockerfile b/context/generated/windows/MinimalAgent/nanoserver/1809/Dockerfile index 761862ea..f01f44db 100644 --- a/context/generated/windows/MinimalAgent/nanoserver/1809/Dockerfile +++ b/context/generated/windows/MinimalAgent/nanoserver/1809/Dockerfile @@ -23,6 +23,10 @@ USER ContainerAdministrator RUN mkdir C:\\BuildAgent COPY TeamCity/buildAgent C:/BuildAgent +# Workaround for TW-87124 - Windows-based plugin directories receive incorrect case, causing their inability ... +# ... to load. The directory will be fetched from the server upon the first update with proper case. +RUN Remove-Item -Recurse -Force C:/BuildAgent/plugins + COPY scripts/*.cs /scripts/ SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] diff --git a/context/generated/windows/MinimalAgent/nanoserver/1903/Dockerfile b/context/generated/windows/MinimalAgent/nanoserver/1903/Dockerfile index 824eced8..acdfdc65 100644 --- a/context/generated/windows/MinimalAgent/nanoserver/1903/Dockerfile +++ b/context/generated/windows/MinimalAgent/nanoserver/1903/Dockerfile @@ -23,6 +23,10 @@ USER ContainerAdministrator RUN mkdir C:\\BuildAgent COPY TeamCity/buildAgent C:/BuildAgent +# Workaround for TW-87124 - Windows-based plugin directories receive incorrect case, causing their inability ... +# ... to load. The directory will be fetched from the server upon the first update with proper case. +RUN Remove-Item -Recurse -Force C:/BuildAgent/plugins + COPY scripts/*.cs /scripts/ SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] diff --git a/context/generated/windows/MinimalAgent/nanoserver/1909/Dockerfile b/context/generated/windows/MinimalAgent/nanoserver/1909/Dockerfile index bdc0fbca..5e35b6bc 100644 --- a/context/generated/windows/MinimalAgent/nanoserver/1909/Dockerfile +++ b/context/generated/windows/MinimalAgent/nanoserver/1909/Dockerfile @@ -23,6 +23,10 @@ USER ContainerAdministrator RUN mkdir C:\\BuildAgent COPY TeamCity/buildAgent C:/BuildAgent +# Workaround for TW-87124 - Windows-based plugin directories receive incorrect case, causing their inability ... +# ... to load. The directory will be fetched from the server upon the first update with proper case. +RUN Remove-Item -Recurse -Force C:/BuildAgent/plugins + COPY scripts/*.cs /scripts/ SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]