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
lizhongxiao
OpenXG-RAN
Commits
e396af83
Commit
e396af83
authored
Nov 02, 2022
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): proxy push does not follow the same pattern
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
665b5bae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ci-scripts/Jenkinsfile-push-registry
ci-scripts/Jenkinsfile-push-registry
+9
-1
No files found.
ci-scripts/Jenkinsfile-push-registry
View file @
e396af83
...
...
@@ -77,7 +77,8 @@ pipeline {
withCredentials
([
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.DH_Credentials}"
,
usernameVariable:
'DH_Username'
,
passwordVariable:
'DH_Password'
]
])
{
def
listOfImages
=
[
"oai-enb"
,
"oai-gnb"
,
"oai-lte-ue"
,
"oai-nr-ue"
,
"proxy"
]
def
listOfImages
=
[
"oai-enb"
,
"oai-gnb"
,
"oai-lte-ue"
,
"oai-nr-ue"
]
// Logging in on both registries
sh
"docker login -u ${DH_Username} -p ${DH_Password} > /dev/null 2>&1"
sh
"docker login -u oaicicd -p oaicicd porcepix.sboai.cs.eurecom.fr > /dev/null 2>&1"
listOfImages
.
eachWithIndex
{
item
,
iindex
->
...
...
@@ -88,6 +89,13 @@ pipeline {
sh
"docker push --quiet ${DH_Account}/${item}:develop"
sh
"docker rmi ${DH_Account}/${item}:${WEEK_TAG} ${DH_Account}/${item}:develop porcepix.sboai.cs.eurecom.fr/${item}:develop-${WEEK_SHA}"
}
// Proxy is not following the same pattern.
sh
"docker image tag proxy:develop ${DH_Account}/proxy:develop"
sh
"docker image tag proxy:develop ${DH_Account}/proxy:${WEEK_TAG}"
sh
"docker push --quiet ${DH_Account}/proxy:develop"
sh
"docker push --quiet ${DH_Account}/proxy:${WEEK_TAG}"
sh
"docker rmi ${DH_Account}/proxy:develop ${DH_Account}/proxy:${WEEK_TAG}"
// Logging out on both registries
sh
"docker logout porcepix.sboai.cs.eurecom.fr > /dev/null 2>&1"
sh
"docker logout > /dev/null 2>&1"
}
...
...
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