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
OpenXG
OpenXG UE
Commits
11377870
Commit
11377870
authored
Jan 10, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Log repo cloning/merging instructions
parent
8ff1b0bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ci-scripts/ran.py
ci-scripts/ran.py
+3
-0
No files found.
ci-scripts/ran.py
View file @
11377870
...
@@ -159,6 +159,7 @@ class RANManagement():
...
@@ -159,6 +159,7 @@ class RANManagement():
# Raphael: here add a check if git clone or git fetch went smoothly
# Raphael: here add a check if git clone or git fetch went smoothly
mySSH
.
command
(
'git config user.email "jenkins@openairinterface.org"'
,
'\$'
,
5
)
mySSH
.
command
(
'git config user.email "jenkins@openairinterface.org"'
,
'\$'
,
5
)
mySSH
.
command
(
'git config user.name "OAI Jenkins"'
,
'\$'
,
5
)
mySSH
.
command
(
'git config user.name "OAI Jenkins"'
,
'\$'
,
5
)
mySSH
.
command
(
'git advice.detachedHead false'
,
'\$'
,
5
)
# Checking the BUILD INFO file
# Checking the BUILD INFO file
if
not
self
.
backgroundBuild
:
if
not
self
.
backgroundBuild
:
mySSH
.
command
(
'ls *.txt'
,
'\$'
,
5
)
mySSH
.
command
(
'ls *.txt'
,
'\$'
,
5
)
...
@@ -203,6 +204,7 @@ class RANManagement():
...
@@ -203,6 +204,7 @@ class RANManagement():
else
:
else
:
logging
.
debug
(
'Merging with the target branch: '
+
self
.
ranTargetBranch
)
logging
.
debug
(
'Merging with the target branch: '
+
self
.
ranTargetBranch
)
mySSH
.
command
(
'git merge --ff origin/'
+
self
.
ranTargetBranch
+
' -m "Temporary merge for CI"'
,
'\$'
,
5
)
mySSH
.
command
(
'git merge --ff origin/'
+
self
.
ranTargetBranch
+
' -m "Temporary merge for CI"'
,
'\$'
,
5
)
logging
.
debug
(
mySSH
.
getBefore
())
# print what git said when merging/checking out
mySSH
.
command
(
'source oaienv'
,
'\$'
,
5
)
mySSH
.
command
(
'source oaienv'
,
'\$'
,
5
)
mySSH
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
mySSH
.
command
(
'cd cmake_targets'
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p log'
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p log'
,
'\$'
,
5
)
...
@@ -212,6 +214,7 @@ class RANManagement():
...
@@ -212,6 +214,7 @@ class RANManagement():
mySSH
.
command
(
'echo "./build_oai '
+
self
.
Build_eNB_args
+
'" > ./my-lte-softmodem-build.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'echo "./build_oai '
+
self
.
Build_eNB_args
+
'" > ./my-lte-softmodem-build.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'chmod 775 ./my-lte-softmodem-build.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'chmod 775 ./my-lte-softmodem-build.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S ls'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S ls'
,
'\$'
,
5
)
logging
.
debug
(
mySSH
.
getBefore
())
# print current directory contents for verification
mySSH
.
command
(
'echo $USER; nohup sudo -E ./my-lte-softmodem-build.sh'
+
' > '
+
lSourcePath
+
'/cmake_targets/compile_oai_enb.log '
+
' 2>&1 &'
,
lUserName
,
5
)
mySSH
.
command
(
'echo $USER; nohup sudo -E ./my-lte-softmodem-build.sh'
+
' > '
+
lSourcePath
+
'/cmake_targets/compile_oai_enb.log '
+
' 2>&1 &'
,
lUserName
,
5
)
mySSH
.
close
()
mySSH
.
close
()
HTML
.
CreateHtmlTestRow
(
self
.
Build_eNB_args
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
self
.
Build_eNB_args
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
...
...
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