Обновить Jenkinsfile

This commit is contained in:
2026-05-06 20:38:28 +00:00
parent 371dd08eaa
commit 0c20bbb435
Vendored
+8 -2
View File
@@ -98,8 +98,14 @@ powershell -NoProfile -ExecutionPolicy Bypass -File gitea-release.ps1
writeFile file: 'taiga-post.ps1', text: ''' writeFile file: 'taiga-post.ps1', text: '''
$ErrorActionPreference = "Continue" $ErrorActionPreference = "Continue"
$commitMsg = git log -1 --pretty=%B $commitMsg = git log -1 --pretty=%B 2>$null
$match = [regex]::Match($commitMsg, 'TG-(\\d+)')
if ([string]::IsNullOrWhiteSpace($commitMsg)) {
Write-Host "No git commit message available"
exit 0
}
$match = [regex]::Match($commitMsg, 'TG-(\d+)')
if (-not $match.Success) { if (-not $match.Success) {
Write-Host "No TG-* reference found" Write-Host "No TG-* reference found"