Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OSM Packages
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vnf-onboarding
OSM Packages
Commits
d82cdfb3
Commit
d82cdfb3
authored
3 years ago
by
Guillermo Gomez Chavez
Browse files
Options
Downloads
Patches
Plain Diff
refactoring of gitlab-ci and use of osmclient repo-index for testing
parent
288f8a18
No related branches found
Branches containing commit
No related tags found
1 merge request
!165
Draft: Packages testing with osm client
Pipeline
#1983
failed with stage
Stage:
in 2 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-34
29 additions, 34 deletions
.gitlab-ci.yml
with
29 additions
and
34 deletions
.gitlab-ci.yml
+
29
−
34
View file @
d82cdfb3
###############################################################################
publish-repository
:
# B
uild
s the repository and pushes it to ftp site when a MR is accepted
image
:
ubuntu:18.04
stage
:
deploy
script
:
stages
:
-
b
uild
_and_test
-
deploy
before_script
:
# TODO: how to reuse installation?
-
DEBIAN_FRONTEND=noninteractive apt update
-
DEBIAN_FRONTEND=noninteractive apt install -y gcc git make python3 python3 python3-pip python3-pycurl python3-setuptools sshpass software-properties-common libcurl4-openssl-dev libssl-dev
-
DEBIAN_FRONTEND=noninteractive apt install -y gcc git make python3 python3 python3-pip python3-pycurl python3-setuptools sshpass software-properties-common libcurl4-openssl-dev libssl-dev
wget
-
git submodule init
-
git submodule update
-
python3 -m pip install wheel pyang pyangbind
-
git clone https://osm.etsi.org/gerrit/osm/IM.git
-
pip3 install -r IM/requirements.txt
-
pip3 install IM/
-
git clone https://osm.etsi.org/gerrit/osm/osmclient.git
-
git clone https://osm.etsi.org/gerrit/osm/osmclient.git
@a06653517f253a15b10914d067c95d163f734ac2
-
pip3 install -r osmclient/requirements.txt
-
pip3 install osmclient/
-
rm -rf osmclient/ IM/
-
mv magma/* .
-
mv charm-packages/* .
# - 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
# EOF
rules
:
-
if
:
'
$CI_COMMIT_REF_PROTECTED
==
"true"'
when
:
on_success
###############################################################################
build-local-repository
:
# Builds the repository locally but does not push if this is a new MR that
# is still in development
image
:
python:latest
stage
:
build
image
:
ubuntu:18.04
stage
:
build_and_test
only
:
-
merge_requests
script
:
-
DEBIAN_FRONTEND=noninteractive apt update
-
DEBIAN_FRONTEND=noninteractive apt install -y gcc 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 wheel pyang pyangbind
-
git clone https://osm.etsi.org/gerrit/osm/IM.git
-
pip3 install -r IM/requirements.txt
-
pip3 install IM/
-
git clone https://osm.etsi.org/gerrit/osm/osmclient.git
-
pip3 install -r osmclient/requirements.txt
-
pip3 install osmclient/
-
rm -rf osmclient/ IM/
-
mv magma/* .
-
mv charm-packages/* .
-
echo "Build OK"
-
osm -vvv 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/Premerge
# EOF
rules
:
-
if
:
'
$CI_COMMIT_REF_PROTECTED
==
"false"'
when
:
on_success
publish-repository
:
# Builds the repository and pushes it to ftp site when a MR is accepted # TODO: how is it pushed?
image
:
ubuntu:18.04
stage
:
deploy
only
:
-
master
script
:
-
echo "Build OK"
# - 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
# EOF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment