fix: refs #8715 update condition for changelog stage in Jenkinsfile to use IS_PROTECTED_BRANCH
gitea/salix-front/pipeline/pr-dev Build queued...
Details
gitea/salix-front/pipeline/pr-dev Build queued...
Details
This commit is contained in:
parent
c3811d3318
commit
1992610533
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue