Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
Operations
Operations
Metrics
Environments
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-SMF
Commits
01cfcdfd
Commit
01cfcdfd
authored
Apr 15, 2020
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix typo
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@openairinterface.org
>
parent
4d7c34a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ci-scripts/Jenkinsfile-GitLab-Docker
ci-scripts/Jenkinsfile-GitLab-Docker
+7
-7
No files found.
ci-scripts/Jenkinsfile-GitLab-Docker
View file @
01cfcdfd
...
...
@@ -284,26 +284,26 @@ pipeline {
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.PrivateGitLabRepository_Credentials}"
,
usernameVariable:
'git_username'
,
passwordVariable:
'git_password'
]
])
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
myShCmd
(
'docker build --target test-u
md-server --tag test-umd-server:test-deploy --file ci-scripts/Dockerfile.private.umd-server.ubuntu18.04 --build-arg EURECOM_PROXY="http://proxy.eurecom.fr:8080" --build-arg GITLAB_USERNAME="'
+
git_username
+
'" --build-arg GITLAB_PASSWORD="'
+
git_password
+
'" --build-arg BUILD_FOR_CI="True" --build-arg CI_SRC_BRANCH="'
+
env
.
ghprbSourceBranch
+
'" --build-arg CI_SRC_COMMIT="'
+
env
.
ghprbActualCommit
+
'" --build-arg CI_DEST_BRANCH="develop" . > archives/umd
_server_docker_image_build.log 2>&1'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker build --target test-u
dm-server --tag test-udm-server:test-deploy --file ci-scripts/Dockerfile.private.udm-server.ubuntu18.04 --build-arg EURECOM_PROXY="http://proxy.eurecom.fr:8080" --build-arg GITLAB_USERNAME="'
+
git_username
+
'" --build-arg GITLAB_PASSWORD="'
+
git_password
+
'" --build-arg BUILD_FOR_CI="True" --build-arg CI_SRC_BRANCH="'
+
env
.
ghprbSourceBranch
+
'" --build-arg CI_SRC_COMMIT="'
+
env
.
ghprbActualCommit
+
'" --build-arg CI_DEST_BRANCH="develop" . > archives/udm
_server_docker_image_build.log 2>&1'
,
new_host_flag
,
new_host_user
,
new_host
)
}
else
{
myShCmd
(
'docker build --target test-u
md-server --tag test-umd-server:test-deploy --file ci-scripts/Dockerfile.private.umd-server.ubuntu18.04 --build-arg EURECOM_PROXY="http://proxy.eurecom.fr:8080" --build-arg GITLAB_USERNAME="'
+
git_username
+
'" --build-arg GITLAB_PASSWORD="'
+
git_password
+
'" --build-arg CI_SRC_BRANCH="develop" . > archives/umd
_server_docker_image_build.log 2>&1'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker build --target test-u
dm-server --tag test-udm-server:test-deploy --file ci-scripts/Dockerfile.private.udm-server.ubuntu18.04 --build-arg EURECOM_PROXY="http://proxy.eurecom.fr:8080" --build-arg GITLAB_USERNAME="'
+
git_username
+
'" --build-arg GITLAB_PASSWORD="'
+
git_password
+
'" --build-arg CI_SRC_BRANCH="develop" . > archives/udm
_server_docker_image_build.log 2>&1'
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
myShCmd
(
'docker image ls >> archives/u
md
_server_docker_image_build.log'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker image ls >> archives/u
dm
_server_docker_image_build.log'
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
}
post
{
always
{
script
{
copyFrom2ndServer
(
'archives/u
md
_server_docker_image_build.log'
,
'archives'
,
new_host_flag
,
new_host_user
,
new_host
)
copyFrom2ndServer
(
'archives/u
dm
_server_docker_image_build.log'
,
'archives'
,
new_host_flag
,
new_host_user
,
new_host
)
}
}
success
{
sh
"echo 'TEST-UMD-SERVER DOCKER IMAGE BUILD: OK' >> archives/u
md
_server_docker_image_build.log"
sh
"echo 'TEST-UMD-SERVER DOCKER IMAGE BUILD: OK' >> archives/u
dm
_server_docker_image_build.log"
}
unsuccessful
{
sh
"echo 'TEST-UMD-SERVER DOCKER IMAGE BUILD: KO' >> archives/u
md
_server_docker_image_build.log"
sh
"echo 'TEST-UMD-SERVER DOCKER IMAGE BUILD: KO' >> archives/u
dm
_server_docker_image_build.log"
}
}
}
...
...
@@ -442,7 +442,7 @@ pipeline {
echo
"We failed to delete the OAI-SMF temp image"
}
try
{
myShCmd
(
'docker image rm --force test-amf-server:test-deploy test-u
md
-server:test-deploy test-amf-client:test-deploy'
,
new_host_flag
,
new_host_user
,
new_host
)
myShCmd
(
'docker image rm --force test-amf-server:test-deploy test-u
dm
-server:test-deploy test-amf-client:test-deploy'
,
new_host_flag
,
new_host_user
,
new_host
)
}
catch
(
Exception
e
)
{
echo
"We failed to delete the test temp images"
}
...
...
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