Skip to content

Commit

Permalink
[TCQA] Windows 2019: execute the removal of plugins directory under P…
Browse files Browse the repository at this point in the history
…owerShell (once SHELL is enabled)
  • Loading branch information
AndreyKoltsov1997 committed Jul 18, 2024
1 parent 8ae09b0 commit 16d51ca
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ USER ContainerAdministrator
RUN mkdir C:\\BuildAgent
COPY TeamCity/buildAgent C:/BuildAgent

COPY scripts/*.cs /scripts/
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

# 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';"]

COPY run-agent.ps1 /BuildAgent/run-agent.ps1

# JDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ USER ContainerAdministrator
RUN mkdir C:\\BuildAgent
COPY TeamCity/buildAgent C:/BuildAgent

COPY scripts/*.cs /scripts/
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

# 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';"]

COPY run-agent.ps1 /BuildAgent/run-agent.ps1

# JDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ USER ContainerAdministrator
RUN mkdir C:\\BuildAgent
COPY TeamCity/buildAgent C:/BuildAgent

COPY scripts/*.cs /scripts/
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

# 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';"]

COPY run-agent.ps1 /BuildAgent/run-agent.ps1

# JDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ USER ContainerAdministrator
RUN mkdir C:\\BuildAgent
COPY TeamCity/buildAgent C:/BuildAgent

COPY scripts/*.cs /scripts/
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

# 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';"]

COPY run-agent.ps1 /BuildAgent/run-agent.ps1

# JDK
Expand Down

0 comments on commit 16d51ca

Please sign in to comment.