Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vnf-onboarding
OSM Packages
Commits
0bff35fd
Commit
0bff35fd
authored
Nov 27, 2020
by
Mark Beierl
Browse files
Merge branch 'beierlm-master-patch-43982' into 'master'
Use osmclient from source See merge request
!100
parents
a65e0e50
74ea852a
Pipeline
#108
passed with stage
in 1 minute and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
.gitlab-ci.yml
.gitlab-ci.yml
+17
-15
No files found.
.gitlab-ci.yml
View file @
0bff35fd
...
...
@@ -5,17 +5,18 @@ publish-repository:
stage
:
deploy
script
:
-
DEBIAN_FRONTEND=noninteractive apt update
-
DEBIAN_FRONTEND=noninteractive apt install -y g
it python3-pip
sshpass software-properties-common wget
-
DEBIAN_FRONTEND=noninteractive apt install -y g
cc git make python3 python3 python3-pip python3-pycurl python3-setuptools
sshpass software-properties-common wget
-
git submodule init
-
git submodule update
-
python3 -m pip install python-magic pyangbind verboselogs
-
wget -qO - https://osm-download.etsi.org/repository/osm/debian/ReleaseEIGHT/OSM%20ETSI%20Release%20Key.gpg | apt-key add -
-
add-apt-repository -y "deb [arch=amd64] https://osm-download.etsi.org/repository/osm/debian/ReleaseEIGHT stable devops IM osmclient"
-
DEBIAN_FRONTEND=noninteractive apt update
-
DEBIAN_FRONTEND=noninteractive apt install -y python3-osmclient
-
python3 -m pip install wheel pyang pyangbind
-
git clone https://osm.etsi.org/gerrit/osm/IM.git
-
pip3 install IM/
-
git clone https://osm.etsi.org/gerrit/osm/osmclient.git
-
pip3 install osmclient/
-
rm -rf osmclient/ IM/
-
mv magma/* .
-
mv charm-packages/* .
-
LC_ALL=C.UTF-8 oLANG=C.UTF-8 osm repo-index --origin . --destination vnf-catalog
-
LC_ALL=C.UTF-8 oLANG=C.UTF-8 osm
-vvv
repo-index --origin . --destination vnf-catalog
-
|
sshpass -p "$VNF_CATALOG_CREDENTIALS" sftp -o "StrictHostKeyChecking no" -P 29419 osmsupport@vnf-catalog.etsi.org << EOF
put -r vnf-catalog/* Testing
...
...
@@ -28,21 +29,22 @@ publish-repository:
build-local-repository
:
# Builds the repository locally but does not push if this is a new MR that
# is still in development
image
:
ubuntu:18.04
image
:
python:latest
stage
:
build
script
:
-
DEBIAN_FRONTEND=noninteractive apt update
-
DEBIAN_FRONTEND=noninteractive apt install -y g
it python3-pip
sshpass software-properties-common wget
-
DEBIAN_FRONTEND=noninteractive apt install -y g
cc git make python3 python3 python3-pip python3-pycurl python3-setuptools
sshpass software-properties-common wget
-
git submodule init
-
git submodule update
-
python3 -m pip install python-magic pyangbind verboselogs
-
wget -qO - https://osm-download.etsi.org/repository/osm/debian/ReleaseEIGHT/OSM%20ETSI%20Release%20Key.gpg | apt-key add -
-
add-apt-repository -y "deb [arch=amd64] https://osm-download.etsi.org/repository/osm/debian/ReleaseEIGHT stable devops IM osmclient"
-
DEBIAN_FRONTEND=noninteractive apt update
-
DEBIAN_FRONTEND=noninteractive apt install -y python3-osmclient
-
python3 -m pip install wheel pyang pyangbind
-
git clone https://osm.etsi.org/gerrit/osm/IM.git
-
pip3 install IM/
-
git clone https://osm.etsi.org/gerrit/osm/osmclient.git
-
pip3 install osmclient/
-
rm -rf osmclient/ IM/
-
mv magma/* .
-
mv charm-packages/* .
-
LC_ALL=C.UTF-8 oLANG=C.UTF-8 osm repo-index --origin . --destination vnf-catalog
-
LC_ALL=C.UTF-8 oLANG=C.UTF-8 osm
-vvv
repo-index --origin . --destination vnf-catalog
rules
:
-
if
:
'
$CI_COMMIT_REF_PROTECTED
==
"false"'
when
:
on_success
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