include deletion of old artifacts in build script

This commit is contained in:
Florian Förster 2026-01-07 10:47:43 +01:00
parent 3a766deb44
commit 4686a10f41

View File

@ -4,6 +4,16 @@ $PY_PATH = Join-Path -Path $ENV_PATH -ChildPath 'python'
$SRC_PATH = (Get-Location).Path $SRC_PATH = (Get-Location).Path
Write-Output "Build Pipeline for d-opt EKF-Diagnostics sensor anomaly detection" Write-Output "Build Pipeline for d-opt EKF-Diagnostics sensor anomaly detection"
Write-Output "Delete existing artifacts..."
$pattern = "dopt_ekf_sensor-anomalies_v*"
Get-ChildItem -Path $DEPLOYMENT_PATH -Filter $pattern | Remove-Item -Recurse -Force
if ($? -eq $false){
Write-Output "[PWSH] Exiting script because there were errors in the deletion procedure"
Exit
}
Write-Output "Deleted outstanding artifacts successfully"
Write-Output "Building package..." Write-Output "Building package..."
.\scripts\publish.ps1 .\scripts\publish.ps1
if ($? -eq $false){ if ($? -eq $false){