fix: refs #8715 update condition for changelog stage in Jenkinsfile to use IS_PROTECTED_BRANCH
gitea/salix-front/pipeline/pr-dev Build queued... Details

This commit is contained in:
Alex Moreno 2025-03-27 13:34:37 +01:00
parent c3811d3318
commit 1992610533
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -77,7 +77,7 @@ pipeline {
} }
stage('Changelog') { stage('Changelog') {
when { when {
expression { !PROTECTED_BRANCH } expression { !IS_PROTECTED_BRANCH }
} }
steps { steps {
script { script {
@ -85,7 +85,7 @@ pipeline {
script: "git fetch origin ${TARGET_BRANCH} && git diff --name-only origin/${TARGET_BRANCH}", script: "git fetch origin ${TARGET_BRANCH} && git diff --name-only origin/${TARGET_BRANCH}",
returnStdout: true returnStdout: true
).trim().split('\n') ).trim().split('\n')
echo "DIFF: ${diffOutput}" echo "DIFF: ${diffOutput}" // diffOutput
def hasChangelog = diffOutput.any { it == 'CHANGELOG.md' } def hasChangelog = diffOutput.any { it == 'CHANGELOG.md' }
if (!hasChangelog) { if (!hasChangelog) {