From 25b9ea97f0a995d9b0d542fe62c2763cf169960e Mon Sep 17 00:00:00 2001 From: Dmitry Kirdyashkin Date: Fri, 19 May 2023 12:51:55 +0300 Subject: [PATCH] fix --- scripts/lib.ps1 | 2 ++ 1 file changed, 2 insertions(+) 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)){