ci: refs #8698 Jenkins changeset #1525

Merged
alexm merged 62 commits from 8698_jenkins_e2e_onlyChanges into dev 2025-04-07 11:13:40 +00:00
1 changed files with 12 additions and 11 deletions
Showing only changes of commit 95f9917dc2 - Show all commits

23
Jenkinsfile vendored
View File

@ -91,20 +91,21 @@ pipeline {
}
if (lastSuccessfulBuild != null) {
echo "lastSuccessfulBuild ${lastSuccessfulBuild}"
// Extraer el commit del build exitoso desde el changelog
def lastCommitHash = ""
for (changeSet in lastSuccessfulBuild.changesets) {
for (change in changeSet.items) {
echo "Autor: ${change.author}"
echo "Comentario: ${change.comment}"
echo "Archivos modificados: ${change.affectedPaths}"
echo "Commit: ${change.commitId}"
}
}
// for (changeSet in lastSuccessfulBuild.changesets) {
// for (change in changeSet.items) {
// echo "Autor: ${change.author}"
// echo "Comentario: ${change.comment}"
// echo "Archivos modificados: ${change.affectedPaths}"
// echo "Commit: ${change.commitId}"
// }
// }
if (lastCommitHash) {
echo "Último commit exitoso: ${lastCommitHash}"
}
// if (lastCommitHash) {
// echo "Último commit exitoso: ${lastCommitHash}"
// }
} else {
lastCommitHash = sh(script: "git rev-parse origin/${env.CHANGE_TARGET}}", returnStdout: true).trim()
echo "Hash obtenido con git: ${lastCommitHash}"