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
zzha zzha
OpenXG-RAN
Commits
7afedd21
Commit
7afedd21
authored
May 03, 2023
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Pull cluster image - modif of OC project selection
parent
7c7d54e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ci-scripts/cls_cluster.py
ci-scripts/cls_cluster.py
+3
-2
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+1
-1
No files found.
ci-scripts/cls_cluster.py
View file @
7afedd21
...
...
@@ -199,9 +199,10 @@ class Cluster:
HELP
.
EPCSrvHelp
(
self
.
imageToPull
)
sys
.
exit
(
'Insufficient eNB Parameters'
)
lIpAddr
=
self
.
eNBIPAddress
ocProjectName
=
NAMESPACE
self
.
testCase_id
=
HTML
.
testCase_id
cmd
=
cls_cmd
.
getConnection
(
lIpAddr
)
succeeded
=
OC_login
(
cmd
,
self
.
OCUserName
,
self
.
OCPassword
,
self
.
OC
ProjectName
)
succeeded
=
OC_login
(
cmd
,
self
.
OCUserName
,
self
.
OCPassword
,
oc
ProjectName
)
if
not
succeeded
:
logging
.
error
(
'
\u001B
[1m OC Cluster Login Failed
\u001B
[0m'
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
OC_LOGIN_FAIL
)
...
...
@@ -214,7 +215,7 @@ class Cluster:
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
OC_LOGIN_FAIL
)
return
False
for
image
in
self
.
imageToPull
:
imagePrefix
=
f'
{
self
.
OCRegistry
}{
self
.
OC
ProjectName
}
'
imagePrefix
=
f'
{
self
.
OCRegistry
}{
oc
ProjectName
}
'
imageTag
=
cls_containerize
.
ImageTagToUse
(
image
,
self
.
ranCommitID
,
self
.
ranBranch
,
self
.
ranAllowMerge
)
ret
=
cmd
.
run
(
f'docker pull
{
imagePrefix
}
/
{
imageTag
}
'
)
if
ret
.
returncode
!=
0
:
...
...
ci-scripts/cls_containerize.py
View file @
7afedd21
...
...
@@ -800,7 +800,7 @@ class Containerize():
logging
.
debug
(
'Removing test images locally'
)
myCmd
=
cls_cmd
.
LocalCmd
()
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
]
imageNames
=
[
'oai-enb'
,
'oai-gnb'
,
'oai-lte-ue'
,
'oai-nr-ue'
,
'oai-lte-ru'
,
'oai-nr-cuup'
,
'oai-gnb-aw2s'
]
for
image
in
imageNames
:
imageTag
=
ImageTagToUse
(
image
,
self
.
ranCommitID
,
self
.
ranBranch
,
self
.
ranAllowMerge
)
cmd
=
f'docker rmi oai-ci/
{
imageTag
}
'
...
...
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