From 64f17b570ae28d46ad6b76e5309015d528045fcd Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Fri, 15 Feb 2019 16:12:47 -0800 Subject: [PATCH] Remove some logging. Change checkout master command and fetch command --- asm/scripts/deploy-asm.ps1 | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/asm/scripts/deploy-asm.ps1 b/asm/scripts/deploy-asm.ps1 index 0c009f8..888767d 100644 --- a/asm/scripts/deploy-asm.ps1 +++ b/asm/scripts/deploy-asm.ps1 @@ -44,28 +44,18 @@ function appveyorFinished { return $false } - Write-Host "[Appveyor] At Last Job: " - Write-Host $buildData - Write-Host $buildData.build - Write-Host $buildData.build.jobs - [datetime]$stop = ([datetime]::Now).AddMinutes($env:TIMEOUT_MINS) do { - Write-Host "[Appveyor] Checking Build Jobs" $allSuccess = $true (Get-AppVeyorBuild).build.jobs | Where-Object {$_.jobId -ne $env:APPVEYOR_JOB_ID} | Foreach-Object ` { $job = $_ - Write-Host "[Appveyor] Checking Build Job $($job.jobId)" - Write-Host $job - Write-Host " " - switch ($job.status) { "failed" { throw "AppVeyor's Job ($($job.jobId)) failed." } "success" { continue } - Default { Write-Host "Job status: $($job.status)"; Write-Host $job ;$allSuccess = $false } + Default { $allSuccess = $false } } } if ($allSuccess) { return $true } @@ -120,7 +110,6 @@ function collectAsm { } git checkout $branchName 2>&1 - git pull 2>&1 #Add branch to the branch list # $branchName = "origin/"+$branchName @@ -134,9 +123,9 @@ function collectAsm { #Merge all branches into master $branchString = $asmBranches -join ' ' - git checkout master 2>&1 + git checkout origin/master 2>&1 git pull - git fetch origin + git fetch --all git branch -a Write-Host "git merge --squash $($branchString)" git merge --squash $branchString