Skip to content

Commit

Permalink
Update build-unity.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
keveleigh committed Jun 23, 2022
1 parent fe28fc9 commit 9e42d9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipelines/templates/tasks/build-unity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ parameters:
steps:
- powershell: |
$logFile = Join-Path $(Agent.TempDirectory) "build_${{ parameters.BuildTarget }}.log"
$proc = Start-UnityEditor -Project ${{ parameters.PathToProject }} -Version ${{ parameters.UnityVersion }} -ExecuteMethod ${{ parameters.CommandLineBuildMethod }} -BatchMode -Quit -PassThru -LogFile $logFile -BuildTarget ${{ parameters.BuildTarget }} -OutputPath ${{ parameters.OutputPath }} -AdditionalArguments "-CacheServerIPAddress ${Env:COG-UnityCache-WUS2-01} ${{ parameters.AdditionalArguments }}"
New-Item -Path $logFile -ItemType File -Force
$proc = Start-UnityEditor -Project ${{ parameters.PathToProject }} -Version ${{ parameters.UnityVersion }} -ExecuteMethod ${{ parameters.CommandLineBuildMethod }} -BatchMode -Quit -PassThru -LogFile $logFile -BuildTarget ${{ parameters.BuildTarget }} -OutputPath ${{ parameters.OutputPath }} -AdditionalArguments "${{ parameters.AdditionalArguments }}"
$ljob = Start-Job -ScriptBlock { param($log) Get-Content "$log" -Wait } -ArgumentList $logFile
while (-not $proc.HasExited -and $ljob.HasMoreData) {
Expand Down

0 comments on commit 9e42d9a

Please sign in to comment.