Skip to content
Snippets Groups Projects
Commit 72a5c601 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

Merge branch 'ci-use-local-registry-for-ubuntu-servers' into 'master'

feat(ci): pulling SPGWU image from local private repository

See merge request oai/cn5g/oai-cn5g-fed!72
parents 9bb56b0f a2c38df1
No related branches found
Tags 2022.w49
No related merge requests found
......@@ -202,6 +202,34 @@ pipeline {
} else {
sh "git clean -x -d -f > /dev/null 2>&1"
sh "mkdir -p archives"
// For dev purpose, make it fast
run_mini_gnbsim = true
run_static_ue_ip = false
run_vpp_upf = false
run_slicing_w_nssf = false
}
// Prepare workspace
sh './scripts/syncComponents.sh --spgwu-tiny-branch ' + spgwuBranch
// On Ubuntu servers, we shall pull from private local registry
if ((cn_ci_host == 'selfix') || (cn_ci_host == 'orion')) {
// Login
sh 'docker login -u oaicicd -p oaicicd selfix.sboai.cs.eurecom.fr > /dev/null 2>&1'
// SPGWU
if ((spgwuTag == 'develop') && (spgwuBranch == 'develop')) {
dir ('component/oai-upf-equivalent') {
shortenShaOne = sh returnStdout: true, script: 'git log -1 --pretty=format:"%h"'
shortenShaOne.trim()
spgwuTag = 'develop-' + shortenShaOne
echo "SPGWU_TAG will be ${spgwuTag}"
}
}
sh 'docker pull selfix.sboai.cs.eurecom.fr/oai-spgwu-tiny:' + spgwuTag
sh 'docker image tag selfix.sboai.cs.eurecom.fr/oai-spgwu-tiny:' + spgwuTag + ' oai-spgwu-tiny:' + spgwuTag
sh 'docker rmi selfix.sboai.cs.eurecom.fr/oai-spgwu-tiny:' + spgwuTag
// Logout
sh 'docker logout selfix.sboai.cs.eurecom.fr > /dev/null 2>&1'
}
// Verify that the images are available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment