Fix trunkate in renewgitlabmirroring

This commit is contained in:
marco.locatelli@steamware.net
2023-09-22 15:25:51 +02:00
parent 2b0b8aaeeb
commit 99879dc716
2 changed files with 20 additions and 11 deletions
+10 -5
View File
@@ -1,9 +1,14 @@
$head = @{"PRIVATE-TOKEN"="glpat-dQsUhS-GxNomkh1GnjHZ"}
$projectCount=1
#$head = @{"PRIVATE-TOKEN"="glpat-dQsUhS-GxNomkh1GnjHZ"}
#$projectCount=1
#$callUrl = "https://gitlab.steamware.net/api/v4/projects/" + $projectCount + "/remote_mirrors"
$callUrl = "https://gitlab.steamware.net/"
$Response = Invoke-WebRequest -URI $callUrl -Headers $head -ContentType "application/json" -UseBasicParsing
Write-Output($Response)
#$callUrl = "https://gitlab.steamware.net/"
#$Response = Invoke-WebRequest -URI $callUrl -Headers $head -ContentType "application/json" -UseBasicParsing
#Write-Output($Response)
$url = "https://*****:*****@gitlab-nembro.steamware.net/steamware/NKC.git"
$splitUrl = $url -split '.net'
Write-Output $splitUrl[0]
Write-Output $splitUrl[1]