Commit 1dcdd99d authored by carignani's avatar carignani
Browse files

use git to retrieve committer email

parent b6697795
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -77,7 +77,13 @@ pipeline {
			mail to: 'cti_support@etsi.org',
				subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
				body: "Something is wrong with ${env.BUILD_URL}"
			mail to: "${env.gitlabUserEmail}",
			
			RECIPIENT = """${sh(
                returnStdout: true,
                script: "git log --format='%ae' HEAD^!"
            )}"""
			
			mail to: "${RECIPIENT}",
				subject: "[3GPP Forge] Validaiton failed: ${currentBuild.fullDisplayName}",
				body: "Some validation errors were found in your contribution to 3GPP Forge. Review at ${env.BUILD_URL}"
		}