Skip to content

Commit cffac1f

Browse files
committed
Fixed Dockerbuild.
1 parent 3c9cff3 commit cffac1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DockerBuild.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param(
1212
[switch]$Claude, # Run Claude CLI instead of Build.ps1. Use -Claude for interactive, -Claude "prompt" for non-interactive.
1313
[switch]$NoMcp, # Do not start the MCP approval server (for -Claude mode).
1414
[string]$ImageName, # Image name (defaults to a name based on the directory).
15-
[string]$BuildAgentPath = 'C:\BuildAgent',
15+
[string]$BuildAgentPath = $(if ($env:TEAMCITY_JRE) { Split-Path $env:TEAMCITY_JRE -Parent } else { 'C:\BuildAgent' }),
1616
[switch]$LoadEnvFromKeyVault, # Forces loading environment variables form the key vault.
1717
[switch]$StartVsmon, # Enable the remote debugger.
1818
[string]$Script = 'Build.ps1', # The build script to be executed inside Docker.

src/PostSharp.Engineering.BuildTools/Resources/DockerBuild.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param(
1212
[switch]$Claude, # Run Claude CLI instead of Build.ps1. Use -Claude for interactive, -Claude "prompt" for non-interactive.
1313
[switch]$NoMcp, # Do not start the MCP approval server (for -Claude mode).
1414
[string]$ImageName, # Image name (defaults to a name based on the directory).
15-
[string]$BuildAgentPath = 'C:\BuildAgent',
15+
[string]$BuildAgentPath = $(if ($env:TEAMCITY_JRE) { Split-Path $env:TEAMCITY_JRE -Parent } else { 'C:\BuildAgent' }),
1616
[switch]$LoadEnvFromKeyVault, # Forces loading environment variables form the key vault.
1717
[switch]$StartVsmon, # Enable the remote debugger.
1818
[string]$Script = 'Build.ps1', # The build script to be executed inside Docker.

0 commit comments

Comments
 (0)