generated from dopt-python/py311
include deletion of old artifacts in build script
This commit is contained in:
parent
3a766deb44
commit
4686a10f41
@ -4,6 +4,16 @@ $PY_PATH = Join-Path -Path $ENV_PATH -ChildPath 'python'
|
||||
$SRC_PATH = (Get-Location).Path
|
||||
|
||||
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..."
|
||||
.\scripts\publish.ps1
|
||||
if ($? -eq $false){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user