Updated build output structure and fixed Include parameter processing in Windows agent2

This commit is contained in:
Alexey Pustovalov
2024-06-01 17:44:03 +09:00
parent cb9e13c9a5
commit e97ebf18d6
6 changed files with 45 additions and 18 deletions

View File

@ -74,6 +74,17 @@ function Update-Config-Var {
Write-Host updated
}
elseif ((Get-Content $ConfigPath | select-string -pattern "^[#;] $VarName=").length -gt 1) {
(Get-Content $ConfigPath) |
Foreach-Object {
$_
if ($_ -match "^[#;] $VarName=$") {
"$VarName=$VarValue"
}
} | Set-Content $ConfigPath
Write-Host "added first occurrence"
}
elseif ((Get-Content $ConfigPath | select-string -pattern "^[#;] $VarName=").length -gt 0) {
(Get-Content $ConfigPath) |
Foreach-Object {