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 ...@@ -51,8 +51,8 @@ def eNB_CommitID
def eNB_AllowMergeRequestProcess = false def eNB_AllowMergeRequestProcess = false
def eNB_TargetBranch def eNB_TargetBranch
def PROJECT_NAME = "test-boris" def PROJECT_NAME = "test-boris"
def author def GIT_COMMIT_AUTHOR
def email_author def GIT_COMMIT_EMAIL
// Global Parameters not to break the main.py command line and code. // Global Parameters not to break the main.py command line and code.
def ADB_IPAddress = "none" def ADB_IPAddress = "none"
def ADB_Username = "none" def ADB_Username = "none"
...@@ -166,16 +166,16 @@ stage ("Verify Parameters") { ...@@ -166,16 +166,16 @@ stage ("Verify Parameters") {
if (params.UE_Credentials == null) { if (params.UE_Credentials == null) {
allParametersPresent = false allParametersPresent = false
} }
author = sh ( GIT_COMMIT_AUTHOR = sh (
script: 'git show -s --pretty=%an', script: 'git show -s --pretty=%an',
returnStdout: true returnStdout: true
).trim() ).trim()
echo "The author of the commit is: ${author}" echo "The author of the commit is: ${GIT_COMMIT_AUTHOR}"
email_author = sh ( GIT_COMMIT_EMAIL = sh (
script: 'git show -s --pretty=%ae', script: 'git show -s --pretty=%ae',
returnStdout: true returnStdout: true
).trim() ).trim()
echo "The email of the author is: ${email_author}" echo "The email of the author is: ${GIT_COMMIT_EMAIL}"
echo "allParametersPresent = ${allParametersPresent}" echo "allParametersPresent = ${allParametersPresent}"
echo "begin if 2" echo "begin if 2"
if (allParametersPresent) { if (allParametersPresent) {
...@@ -356,7 +356,7 @@ Regards, ...@@ -356,7 +356,7 @@ Regards,
OAI CI Team''', OAI CI Team''',
replyTo: 'no-reply@openairinterface.org', replyTo: 'no-reply@openairinterface.org',
subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $buildStageStatus!', subject: '$PROJECT_NAME - Build # $BUILD_NUMBER - $buildStageStatus!',
to: email_author to: GIT_COMMIT_EMAIL
} }
} }
success { 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