diff --git a/scripts/lib.ps1 b/scripts/lib.ps1 index 5d1a442..09878ca 100644 --- a/scripts/lib.ps1 +++ b/scripts/lib.ps1 @@ -66,7 +66,9 @@ function New-Archive { #загрузка архива Write-Host -ForegroundColor Cyan "`nUploading archive..." curl.exe --user owner:5ehfv3fbj8 --upload-file $localFolder\$moduleName\$archiveName $uploadPath/$archiveName --upload-file $localFolder\$moduleName\module.json $uploadPath/module.json + curl -v --user owner:5ehfv3fbj8 -X 'POST' 'https://nexus.kdiva.ru/service/rest/v1/repositories/generic/rebuild-index' -H 'accept: application/json' + Start-Sleep -Seconds 2 #проверка и удаление архива $response = Invoke-RestMethod -Method Get -Uri 'https://nexus.kdiva.ru/service/rest/v1/search?repository=generic' if ($archiveName -in (Split-Path($response.items.name) -Leaf)){