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
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
This commit is contained in:
parent
3caa4abe9e
commit
adc208cb32
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in New Issue