sviluppo
This commit is contained in:
@@ -6,9 +6,18 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss")
|
||||
# avvio stopwatch
|
||||
$mainStopWatch = [system.diagnostics.stopwatch]::StartNew()
|
||||
|
||||
#token per autenticazione
|
||||
#token per autenticazione gitlab.steamware.net
|
||||
$head = @{"PRIVATE-TOKEN"="glpat-dQsUhS-GxNomkh1GnjHZ"}
|
||||
|
||||
#nome utente che effettua i mirror push
|
||||
$userName = "replica"
|
||||
|
||||
#token autenticazione azzano
|
||||
$tokenAzzano = "glpat-gADkrEhkEsvQxGxKez4y"
|
||||
|
||||
#token autenticazione nembro
|
||||
$tokenNembro = "glpat-TzZkRUoYAdKikgwFXW_E"
|
||||
|
||||
#contatore ciclo do while
|
||||
$projectCount = 1
|
||||
|
||||
@@ -84,16 +93,20 @@ do
|
||||
WriteLogOutput 1 "**PROGETTO $projectCount**"
|
||||
foreach($item in $parsedResponse)
|
||||
{
|
||||
#verifico se i mirroring trovati per il progetto corrente hanno status "finished"
|
||||
if($item.update_status.Contains("finished"))
|
||||
#verifico se i mirroring trovati per il progetto corrente contengono "azzano" nell'url
|
||||
if($item.url.Contains("azzano"))
|
||||
{
|
||||
WriteLogOutput 2 "Mirror: $($item.url) - Status: $($item.update_status)"
|
||||
$id = $($item.id)
|
||||
$url = $($item.url)
|
||||
WriteLogOutput 2 "ID: $id - URL: $url"
|
||||
|
||||
}
|
||||
#i mirroring che non hanno status "finished" vengono loggati con relativo errore
|
||||
else
|
||||
#verifico se i mirroring trovati per il progetto corrente contengono "nembro" nell'url
|
||||
if($item.url.Contains("nembro"))
|
||||
{
|
||||
WriteLogOutput 1 "Mirror: $($item.url) - Status: $($item.update_status)"
|
||||
WriteLogOutput 1 "Error: $($item.last_error)"
|
||||
$id = $($item.id)
|
||||
$url = $($item.url)
|
||||
WriteLogOutput 2 "ID: $id - URL: $url"
|
||||
}
|
||||
}
|
||||
$existingProjects=$existingProjects+1
|
||||
|
||||
Reference in New Issue
Block a user