feat: refs #8698 add Cypress tests for login, logout, password recovery, and two-factor authentication
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
c7d26084aa
commit
efaa8a517b
|
@ -90,24 +90,26 @@ pipeline {
|
|||
lastSuccessfulBuild = lastSuccessfulBuild.previousBuild
|
||||
}
|
||||
|
||||
if (lastSuccessfulBuild != null && lastSuccessfulBuild.changesets.size() > 0) {
|
||||
echo "lastSuccessfulBuild ${lastSuccessfulBuild} ${lastSuccessfulBuild.changesets.size()}"
|
||||
// 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}"
|
||||
def lastCommitHash = ""
|
||||
|
||||
if (lastSuccessfulBuild) {
|
||||
def rawBuild = lastSuccessfulBuild.getRawBuild() // Convertimos a hudson.model.Run
|
||||
|
||||
if (rawBuild.changeSets?.size() > 0) {
|
||||
echo "lastSuccessfulBuild: #${lastSuccessfulBuild.number}, Changesets: ${rawBuild.changeSets.size()}"
|
||||
|
||||
for (changeSet in rawBuild.changeSets) {
|
||||
for (change in changeSet.items) {
|
||||
echo "Archivos modificados: ${change.affectedPaths}"
|
||||
echo "Commit: ${change.commitId}"
|
||||
lastCommitHash = change.commitId // Tomamos el commit más reciente
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (lastCommitHash) {
|
||||
echo "Último commit exitoso: ${lastCommitHash}"
|
||||
}
|
||||
} else {
|
||||
lastCommitHash = sh(script: "git rev-parse origin/${env.CHANGE_TARGET}}", returnStdout: true).trim()
|
||||
if (!lastCommitHash) {
|
||||
lastCommitHash = sh(script: "git rev-parse origin/${env.CHANGE_TARGET}", returnStdout: true).trim()
|
||||
echo "Hash obtenido con git: ${lastCommitHash}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue