refactor: refs #8698 update Jenkinsfile to extract last successful build commit hash and improve logging
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
bfe302e9d4
commit
f17b773cca
|
@ -93,9 +93,12 @@ pipeline {
|
|||
if (lastSuccessfulBuild != null) {
|
||||
// Extraer el commit del build exitoso desde el changelog
|
||||
def lastCommitHash = ""
|
||||
lastSuccessfulBuild.changesets.each { changeSet ->
|
||||
changeSet.items.each { change ->
|
||||
lastCommitHash = change.commitId
|
||||
for (changeSet in currentBuild.changesets) {
|
||||
for (change in changeSet.items) {
|
||||
echo "Autor: ${change.author}"
|
||||
echo "Comentario: ${change.comment}"
|
||||
echo "Archivos modificados: ${change.affectedPaths}"
|
||||
echo "Commit: ${change.commitId}"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue