feat: refs #8715 add changelog verification stage in Jenkinsfile to ensure CHANGELOG.md is updated
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-03-27 12:51:48 +01:00
parent 3caa4abe9e
commit adc208cb32
1 changed files with 15 additions and 0 deletions

15
Jenkinsfile vendored
View File

@ -75,6 +75,21 @@ pipeline {
} }
} }
} }
stage('Changelog') {
when {
expression { !PROTECTED_BRANCH }
}
steps {
script {
def changeLog = currentBuild.changeSets.collectMany { it.items.collect { it.affectedFiles.collect { it.path } }.flatten() }.flatten()
def hasChangelogChanges = changeLog.any { it == 'CHANGELOG.md' }
if (!hasChangelogChanges) {
error "No se han detectado cambios en CHANGELOG.md"
}
}
}
}
stage('Install') { stage('Install') {
environment { environment {
NODE_ENV = "" NODE_ENV = ""