Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
d921e001
Commit
d921e001
authored
May 07, 2019
by
Boris Djalal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
292004a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
29 deletions
+6
-29
ci-scripts/Jenkinsfile-OAI-gNB-UE
ci-scripts/Jenkinsfile-OAI-gNB-UE
+3
-26
ci-scripts/main.py
ci-scripts/main.py
+1
-1
ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml
ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml
+2
-2
No files found.
ci-scripts/Jenkinsfile-OAI-gNB-UE
View file @
d921e001
...
...
@@ -34,7 +34,6 @@ def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
// Location of the test XML file to be run
def
testXMLFile
=
params
.
pythonTestXmlFile
def
mainPythonAllXmlFiles
=
""
def
BUILD_STAGE_STATUS
=
true
// Name of the phone resource
def
ciUSRPsResource
=
params
.
USRPsResource
...
...
@@ -74,7 +73,6 @@ pipeline {
}
options
{
disableConcurrentBuilds
()
timestamps
()
gitLabConnection
(
'OAI GitLab'
)
ansiColor
(
'xterm'
)
lock
(
ciUSRPsResource
)
...
...
@@ -156,23 +154,18 @@ pipeline {
allParametersPresent
=
false
}
echo
"params.eNB_IPAddress = ${params.eNB_IPAddress}"
if
(
params
.
eNB_IPAddress
==
null
)
{
allParametersPresent
=
false
}
echo
"params.UE_IPAddress = ${params.UE_IPAddress}"
if
(
params
.
UE_IPAddress
==
null
)
{
allParametersPresent
=
false
}
echo
"params.eNB_SourceCodePath = ${params.eNB_SourceCodePath}"
if
(
params
.
eNB_SourceCodePath
==
null
)
{
allParametersPresent
=
false
}
echo
"params.eNB_Credentials = ${params.eNB_Credentials}"
if
(
params
.
eNB_Credentials
==
null
)
{
allParametersPresent
=
false
}
echo
"params.UE_Credentials = ${params.UE_Credentials}"
if
(
params
.
UE_Credentials
==
null
)
{
allParametersPresent
=
false
}
...
...
@@ -186,7 +179,6 @@ pipeline {
returnStdout:
true
).
trim
()
echo
"The email of the author is: ${GIT_COMMIT_EMAIL}"
echo
"allParametersPresent = ${allParametersPresent}"
if
(
allParametersPresent
)
{
echo
"All parameters are present"
}
else
{
...
...
@@ -213,7 +205,6 @@ pipeline {
sh
"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --UEIPAddress=${params.eNB_IPAddress} --UEUserName=${eNB_Username} --UEPassword=${eNB_Password} --eNBBranch=${eNB_Branch} --eNBSourceCodePath=${params.eNB_SourceCodePath} --UESourceCodePath=${params.eNB_SourceCodePath} --eNBRepository=${eNB_Repository} --eNBCommitID=${eNB_CommitID} --ADBIPAddress=${ADB_IPAddress} --EPCIPAddress=${EPC_IPAddress} --XMLTestFile=${xmlFile}"
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
BUILD_STAGE_STATUS
=
false
}
}
}
...
...
@@ -231,7 +222,7 @@ pipeline {
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.eNB_Credentials}"
,
usernameVariable:
'UE_Username'
,
passwordVariable:
'UE_Password'
]
])
{
sh
"python3 ci-scripts/main.py --mode=TerminateOAIUE --
ADBIPAddress=none --ADBUserName=none --ADBPassword=none --
UEIPAddress=${params.eNB_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password}"
sh
"python3 ci-scripts/main.py --mode=TerminateOAIUE --UEIPAddress=${params.eNB_IPAddress} --UEUserName=${UE_Username} --UEPassword=${UE_Password}"
}
}
post
{
...
...
@@ -330,8 +321,6 @@ pipeline {
post
{
always
{
script
{
// Stage destroy may not be run if error in previous stage
//sh "./ci-scripts/oai-ci-vm-tool destroy --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
emailext
attachmentsPattern:
'*results*.html'
,
body:
'''Hi,
Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!
...
...
@@ -341,18 +330,6 @@ OAI CI Team''',
replyTo:
'no-reply@openairinterface.org'
,
subject:
'$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
,
to:
GIT_COMMIT_EMAIL
// def message = "OAI " + PROJECT_NAME + " build (" + BUILD_NUMBER + "); Build Status" + BUILD_STAGE_STATUS
// addGitLabMRComment comment: message
// gitlabCommitStatus(name: "test-boris") {
// build job: 'test-boris',
// parameters: [
// string(name: 'eNB_Repository', value: String.valueOf(GIT_URL)),
// string(name: 'eNB_Branch', value: String.valueOf(env.gitlabSourceBranch)),
// string(name: 'eNB_CommitID', value: String.valueOf(env.gitlabMergeRequestLastCommit)),
// booleanParam(name: 'eNB_mergeRequest', value: true),
// string(name: 'eNB_TargetBranch', value: String.valueOf(env.gitlabTargetBranch))
// ]
//}
}
}
success
{
...
...
@@ -360,7 +337,7 @@ OAI CI Team''',
def
message
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): passed ("
+
BUILD_URL
+
")"
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
echo
"This is a MERGE event"
addGitLabMRComment
comment:
message
//
addGitLabMRComment comment: message
def
message2
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): passed ("
+
BUILD_URL
+
") -- MergeRequest #"
+
env
.
gitlabMergeRequestIid
+
" ("
+
env
.
gitlabMergeRequestTitle
+
")"
sendSocialMediaMessage
(
'ci-test'
,
'good'
,
message2
)
}
else
{
...
...
@@ -375,7 +352,7 @@ OAI CI Team''',
def
message
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): failed ("
+
BUILD_URL
+
")"
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
echo
"This is a MERGE event"
addGitLabMRComment
comment:
message
//
addGitLabMRComment comment: message
def
message2
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): failed ("
+
BUILD_URL
+
") -- MergeRequest #"
+
env
.
gitlabMergeRequestIid
+
" ("
+
env
.
gitlabMergeRequestTitle
+
")"
sendSocialMediaMessage
(
'ci-test'
,
'danger'
,
message2
)
}
else
{
...
...
ci-scripts/main.py
View file @
d921e001
...
...
@@ -3305,7 +3305,7 @@ elif re.match('^TerminateOAIUE$', mode, re.IGNORECASE):
Usage
()
sys
.
exit
(
'Insufficient Parameter'
)
signal
.
signal
(
signal
.
SIGUSR1
,
receive_signal
)
SSH
.
TerminateUE
()
SSH
.
Terminate
OAI
UE
()
elif
re
.
match
(
'^TerminateHSS$'
,
mode
,
re
.
IGNORECASE
):
if
SSH
.
EPCIPAddress
==
''
or
SSH
.
EPCUserName
==
''
or
SSH
.
EPCPassword
==
''
or
SSH
.
EPCType
==
''
or
SSH
.
EPCSourceCodePath
==
''
:
Usage
()
...
...
ci-scripts/xml_files/gnb_nr_ue_usrp_run.xml
View file @
d921e001
...
...
@@ -19,15 +19,15 @@
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
090101 000001 090102 000001 09010
3 000001 090109 000001
090101 000001 090102 000001 09010
8 090109
-->
<testCaseList>
<htmlTabRef>
run OAI gNB and OAI NR UE USRP
</htmlTabRef>
<htmlTabName>
run-OAI-gNB-NR-UE-USRP
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<TestCaseRequestedList>
090101 000001 090102 000001 090108 090109
</TestCaseRequestedList>
000001
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"090101"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment