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
7736990c
Commit
7736990c
authored
Oct 07, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix after merge conflicts...
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
02319ae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
26 deletions
+28
-26
ci-scripts/main.py
ci-scripts/main.py
+28
-26
No files found.
ci-scripts/main.py
View file @
7736990c
...
@@ -541,36 +541,38 @@ class SSHConnection():
...
@@ -541,36 +541,38 @@ class SSHConnection():
# here add a check if git clone or git fetch went smoothly
# here add a check if git clone or git fetch went smoothly
self
.
command
(
'git config user.email "jenkins@openairinterface.org"'
,
'\$'
,
5
)
self
.
command
(
'git config user.email "jenkins@openairinterface.org"'
,
'\$'
,
5
)
self
.
command
(
'git config user.name "OAI Jenkins"'
,
'\$'
,
5
)
self
.
command
(
'git config user.name "OAI Jenkins"'
,
'\$'
,
5
)
self
.
command
(
'ls *.txt'
,
'\$'
,
5
)
if
self
.
clean_repository
:
result
=
re
.
search
(
'LAST_BUILD_INFO'
,
str
(
self
.
ssh
.
before
))
self
.
command
(
'ls *.txt'
,
'\$'
,
5
)
if
result
is
not
None
:
result
=
re
.
search
(
'LAST_BUILD_INFO'
,
str
(
self
.
ssh
.
before
))
mismatch
=
False
if
result
is
not
None
:
self
.
command
(
'grep SRC_COMMIT LAST_BUILD_INFO.txt'
,
'\$'
,
2
)
mismatch
=
False
result
=
re
.
search
(
self
.
ranCommitID
,
str
(
self
.
ssh
.
before
))
self
.
command
(
'grep SRC_COMMIT LAST_BUILD_INFO.txt'
,
'\$'
,
2
)
if
result
is
None
:
result
=
re
.
search
(
self
.
ranCommitID
,
str
(
self
.
ssh
.
before
))
mismatch
=
True
self
.
command
(
'grep MERGED_W_TGT_BRANCH LAST_BUILD_INFO.txt'
,
'\$'
,
2
)
if
(
self
.
ranAllowMerge
):
result
=
re
.
search
(
'YES'
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
if
result
is
None
:
mismatch
=
True
mismatch
=
True
self
.
command
(
'grep TGT_BRANCH LAST_BUILD_INFO.txt'
,
'\$'
,
2
)
self
.
command
(
'grep MERGED_W_TGT_BRANCH LAST_BUILD_INFO.txt'
,
'\$'
,
2
)
if
self
.
ranTargetBranch
==
''
:
if
(
self
.
ranAllowMerge
):
result
=
re
.
search
(
'develop'
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
'YES'
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
mismatch
=
True
self
.
command
(
'grep TGT_BRANCH LAST_BUILD_INFO.txt'
,
'\$'
,
2
)
if
self
.
ranTargetBranch
==
''
:
result
=
re
.
search
(
'develop'
,
str
(
self
.
ssh
.
before
))
else
:
result
=
re
.
search
(
self
.
ranTargetBranch
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
mismatch
=
True
else
:
else
:
result
=
re
.
search
(
self
.
ranTargetBranch
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
'NO'
,
str
(
self
.
ssh
.
before
))
if
result
is
None
:
if
result
is
None
:
mismatch
=
True
mismatch
=
True
else
:
if
not
mismatch
:
result
=
re
.
search
(
'NO'
,
str
(
self
.
ssh
.
before
))
self
.
close
()
if
result
is
None
:
self
.
CreateHtmlTestRow
(
self
.
Build_eNB_args
,
'OK'
,
ALL_PROCESSES_OK
)
mismatch
=
True
return
if
not
mismatch
:
self
.
close
()
self
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S git clean -x -d -ff'
,
'\$'
,
30
)
self
.
CreateHtmlTestRow
(
self
.
Build_eNB_args
,
'OK'
,
ALL_PROCESSES_OK
)
return
self
.
command
(
'echo '
+
self
.
UEPassword
+
' | sudo -S git clean -x -d -ff'
,
'\$'
,
30
)
# if the commit ID is provided use it to point to it
# if the commit ID is provided use it to point to it
if
self
.
ranCommitID
!=
''
:
if
self
.
ranCommitID
!=
''
:
self
.
command
(
'git checkout -f '
+
self
.
ranCommitID
,
'\$'
,
5
)
self
.
command
(
'git checkout -f '
+
self
.
ranCommitID
,
'\$'
,
5
)
...
...
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