From 0c20bbb435470dadc6139d39fb4945c6a1533ebf Mon Sep 17 00:00:00 2001 From: Grigo Date: Wed, 6 May 2026 20:38:28 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0efed6f..23d79bf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -98,8 +98,14 @@ powershell -NoProfile -ExecutionPolicy Bypass -File gitea-release.ps1 writeFile file: 'taiga-post.ps1', text: ''' $ErrorActionPreference = "Continue" -$commitMsg = git log -1 --pretty=%B -$match = [regex]::Match($commitMsg, 'TG-(\\d+)') +$commitMsg = git log -1 --pretty=%B 2>$null + +if ([string]::IsNullOrWhiteSpace($commitMsg)) { + Write-Host "No git commit message available" + exit 0 +} + +$match = [regex]::Match($commitMsg, 'TG-(\d+)') if (-not $match.Success) { Write-Host "No TG-* reference found"