diff --git a/Jenkinsfile b/Jenkinsfile index c8fdee4..c7893df 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,10 +82,28 @@ pipeline { tools: [ PHPUnit(pattern: 'phpunit.xml') ] ) // Remove containers + sh "docker compose -f ${DOCKER_COMPOSE_FILE} down" sh "docker compose -f ${DOCKER_COMPOSE_FILE} rm -f" sh "docker rmi ${DOCKER_IDENTITY}" sh "docker rmi ${DOCKER_IDENTITY_NGINX}" + script { + def committerEmail = sh ( + script: "git show -s --pretty=%ae", + returnStdout: true + ).trim() + def buildResult = currentBuild.currentResult + mail to: committerEmail, + subject: "Opengnsys CI Build ${env.JOB_NAME} - ${env.BRANCH_NAME} - ${buildResult}", + body: """ +

Opengnsys CI Build ${JOB_NAME} - ${BRANCH_NAME} - ${buildResult}

+

Build Number: ${BUILD_NUMBER}

+

Build URL: ${BUILD_URL}

ยบ + + Saludos cordiales, + Opengnsys CI + """ + } } } }