Commit b923c712 authored by Boris Djalal's avatar Boris Djalal

Changing variables names.

Signed-off-by: default avatarBoris Djalal <boris.djalal@eurecom.fr>
parent 0b423791
......@@ -51,8 +51,8 @@ def eNB_CommitID
def eNB_AllowMergeRequestProcess = false
def eNB_TargetBranch
def PROJECT_NAME = "test-boris"
def author
def email_author
def GIT_COMMIT_AUTHOR
def GIT_COMMIT_EMAIL
// Global Parameters not to break the main.py command line and code.
def ADB_IPAddress = "none"
def ADB_Username = "none"
......@@ -166,16 +166,16 @@ stage ("Verify Parameters") {
if (params.UE_Credentials == null) {
allParametersPresent = false
}
author = sh (
GIT_COMMIT_AUTHOR = sh (
script: 'git show -s --pretty=%an',
returnStdout: true
).trim()
echo "The author of the commit is: ${author}"
email_author = sh (
echo "The author of the commit is: ${GIT_COMMIT_AUTHOR}"
GIT_COMMIT_EMAIL = sh (
script: 'git show -s --pretty=%ae',
returnStdout: true
).trim()
echo "The email of the author is: ${email_author}"
echo "The email of the author is: ${GIT_COMMIT_EMAIL}"
echo "allParametersPresent = ${allParametersPresent}"
echo "begin if 2"
if (allParametersPresent) {
......@@ -356,7 +356,7 @@ Regards,
OAI CI Team''',
replyTo: 'no-reply@openairinterface.org',
subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $buildStageStatus!',
to: email_author
to: GIT_COMMIT_EMAIL
}
}
success {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment