Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
51852733
Commit
51852733
authored
Apr 12, 2021
by
Mohammed Ismail
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: parameters changes
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@openairinterface.org
>
parent
39f395c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
ci-scripts/Jenkinsfile-physim-deploy
ci-scripts/Jenkinsfile-physim-deploy
+1
-1
ci-scripts/args_parse.py
ci-scripts/args_parse.py
+1
-1
ci-scripts/cls_physim1.py
ci-scripts/cls_physim1.py
+9
-6
No files found.
ci-scripts/Jenkinsfile-physim-deploy
View file @
51852733
...
...
@@ -194,7 +194,7 @@ pipeline {
for
(
xmlFile
in
myXmlTestSuite
)
{
if
(
fileExists
(
xmlFile
))
{
try
{
sh
"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress} --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --EPCIPAddress=${params.EPC_IPAddress} --EPCType=${params.EPC_Type} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --ADBIPAddress=${params.ADB_IPAddress} --ADBUserName=${ADB_Username} --ADBPassword=${ADB_Password} --XMLTestFile=${xmlFile} --OCUserName=${OC_Username} --OCPassword=${
ADB
_Password} --OCWorkspace=${OC_Workspace}"
sh
"python3 main.py --mode=TesteNB --eNBIPAddress=${params.eNB_IPAddress} --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${eNB_AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --EPCIPAddress=${params.EPC_IPAddress} --EPCType=${params.EPC_Type} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --ADBIPAddress=${params.ADB_IPAddress} --ADBUserName=${ADB_Username} --ADBPassword=${ADB_Password} --XMLTestFile=${xmlFile} --OCUserName=${OC_Username} --OCPassword=${
OC
_Password} --OCWorkspace=${OC_Workspace}"
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
buildStageStatus
=
false
...
...
ci-scripts/args_parse.py
View file @
51852733
...
...
@@ -262,7 +262,7 @@ def ArgsParse(argvs,CiTestObj,RAN,HTML,EPC,ldpc,CONTAINERS,HELP,SCA,PHYSIM):
PHYSIM
.
OCUserName
=
matchReg
.
group
(
1
)
elif
re
.
match
(
'^\-\-OCPassword=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
matchReg
=
re
.
match
(
'^\-\-OCPassword=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
PHYSIM
.
OCPass
W
ord
=
matchReg
.
group
(
1
)
PHYSIM
.
OCPass
w
ord
=
matchReg
.
group
(
1
)
elif
re
.
match
(
'^\-\-OCWorkspace=(.+)$'
,
myArgv
,
re
.
IGNORECASE
):
matchReg
=
re
.
match
(
'^\-\-OCWorkspace=(.+)$'
,
myArgv
,
re
.
IGNORECASE
)
PHYSIM
.
OCWorkspace
=
matchReg
.
group
(
1
)
...
...
ci-scripts/cls_physim1.py
View file @
51852733
...
...
@@ -69,8 +69,11 @@ class PhySim:
lUserName
=
self
.
eNBUserName
lPassWord
=
self
.
eNBPassword
lSourcePath
=
self
.
eNBSourceCodePath
ocUserName
=
self
.
OCUserName
ocPassword
=
self
.
OCPassword
ocWorkspace
=
self
.
OCWorkspace
if
lIpAddr
==
''
or
lUserName
==
''
or
lPassWord
==
''
or
lSourcePath
==
''
:
if
lIpAddr
==
''
or
lUserName
==
''
or
lPassWord
==
''
or
lSourcePath
==
''
or
ocUserName
==
''
or
ocPassword
==
''
or
ocWorkspace
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
sys
.
exit
(
'Insufficient Parameter'
)
logging
.
debug
(
'Building on server: '
+
lIpAddr
)
...
...
@@ -120,19 +123,19 @@ class PhySim:
logging
.
debug
(
'oai-physim size is unknown'
)
# logging to OC cluster
mySSH
.
command
(
f'oc login -u
{
self
.
OCUserName
}
-p
{
self
.
OC
Password
}
'
,
'\$'
,
6
)
mySSH
.
command
(
f'oc login -u
{
ocUserName
}
-p
{
oc
Password
}
'
,
'\$'
,
6
)
print
(
mySSH
.
getBefore
())
if
mySSH
.
getBefore
().
count
(
'Login successful.'
)
==
0
:
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
sys
.
exit
(
-
1
)
else
:
logging
.
debug
(
'
\u001B
[1m Login to OC Cluster Successfully
\u001B
[0m'
)
mySSH
.
command
(
f'oc project
{
self
.
OC
Workspace
}
'
,
'\$'
,
6
)
if
(
mySSH
.
getBefore
().
count
(
f'Already on project "
{
self
.
OCWorkspace
}
"'
))
==
0
or
(
mySSH
.
getBefore
().
count
(
f'Now using project "
{
self
.
OCWorkspace
}
"'
)
)
==
0
:
logging
.
error
(
f'
\u001B
[1m Unable to access OC project
{
self
.
OC
Workspace
}
\u001B
[0m'
)
mySSH
.
command
(
f'oc project
{
oc
Workspace
}
'
,
'\$'
,
6
)
if
mySSH
.
getBefore
().
count
(
f'Already on project "
{
ocWorkspace
}
"'
)
==
0
or
mySSH
.
getBefore
().
count
(
f'Now using project "
{
self
.
OCWorkspace
}
"'
)
==
0
:
logging
.
error
(
f'
\u001B
[1m Unable to access OC project
{
oc
Workspace
}
\u001B
[0m'
)
sys
.
exit
(
-
1
)
else
:
logging
.
debug
(
f'
\u001B
[1m Now using project
{
self
.
OC
Workspace
}
\u001B
[0m'
)
logging
.
debug
(
f'
\u001B
[1m Now using project
{
oc
Workspace
}
\u001B
[0m'
)
# Using helm charts deployment
mySSH
.
command
(
'helm install physim ./charts/physims/'
,
'\$'
,
6
)
...
...
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