(feature): update repo utils
This commit is contained in:
parent
1816f76736
commit
a3837d1af3
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user