(feature): update repo utils

This commit is contained in:
Maksym Sadovnychyy 2026-03-01 12:00:55 +01:00
parent c847072d6e
commit 00ca3ae611
2 changed files with 5 additions and 4 deletions

View File

@ -282,14 +282,14 @@ function Test-PluginRunnable {
$allowedBranches = Get-PluginBranches -Plugin $Plugin $allowedBranches = Get-PluginBranches -Plugin $Plugin
if ($allowedBranches.Count -eq 0) { if ($allowedBranches.Count -eq 0) {
if ($WriteLogs) { if ($WriteLogs) {
Write-Log -Level "WARN" -Message "Skipping plugin '$($Plugin.Name)' because no publish branches are configured." Write-Log -Level "INFO" -Message "Skipping plugin '$($Plugin.Name)' because no publish branches are configured."
} }
return $false return $false
} }
if (-not ($allowedBranches -contains $SharedSettings.CurrentBranch)) { if (-not ($allowedBranches -contains $SharedSettings.CurrentBranch)) {
if ($WriteLogs) { if ($WriteLogs) {
Write-Log -Level "WARN" -Message "Skipping plugin '$($Plugin.Name)' on branch '$($SharedSettings.CurrentBranch)'." Write-Log -Level "INFO" -Message "Skipping plugin '$($Plugin.Name)' on branch '$($SharedSettings.CurrentBranch)'."
} }
return $false return $false
} }

View File

@ -155,7 +155,8 @@ else {
} }
if (-not $releaseStageInitialized) { if (-not $releaseStageInitialized) {
Write-Log -Level "WARN" -Message "No release plugins executed for branch '$($engineContext.CurrentBranch)'." $noReleasePluginsLogLevel = if ($engineContext.IsNonReleaseBranch) { "INFO" } else { "WARN" }
Write-Log -Level $noReleasePluginsLogLevel -Message "No release plugins executed for branch '$($engineContext.CurrentBranch)'."
} }
#endregion #endregion
@ -174,7 +175,7 @@ Write-Log -Level "INFO" -Message "Artifacts location: $($engineContext.Artifacts
if ($engineContext.IsNonReleaseBranch) { if ($engineContext.IsNonReleaseBranch) {
$preferredReleaseBranch = Get-PreferredReleaseBranch -EngineContext $engineContext $preferredReleaseBranch = Get-PreferredReleaseBranch -EngineContext $engineContext
Write-Log -Level "WARN" -Message "To execute release-stage plugins, rerun from an allowed release branch such as '$preferredReleaseBranch'." Write-Log -Level "INFO" -Message "To execute release-stage plugins, rerun from an allowed release branch such as '$preferredReleaseBranch'."
} }
#endregion #endregion