diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e997e66ff479881d9eb2ea9da485dd1b408e35e3..1ba841c59f6960021a024941ed7a0b9d2ade74cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,13 +14,17 @@ before_script: # TODO: how to reuse installation? - pip3 install IM/ - git clone https://osm.etsi.org/gerrit/osm/osmclient.git - cd osmclient - - git fetch origin refs/changes/43/11146/2 && git checkout FETCH_HEAD + - git fetch origin refs/changes/78/11178/1 && git checkout FETCH_HEAD - cd ../ - pip3 install -r osmclient/requirements.txt - pip3 install osmclient/ - rm -rf osmclient/ IM/ - - mv magma/* . - - mv charm-packages/* . + - declare -a PACKAGES_TO_REVIEW=("charm_packages" "nscharm_policy_vnf" "hackfest_vyos_vnf" "nscharm_ns" "several_volumes_vnf" "magma" "k8s_jujucontroller_vnf" "simple_nopassword_vnf" "slice_basic_nst" "nschram_user_vnf") + - > + for nfv in "${PACKAGES_TO_REVIEW[@]}"; do + echo "Ignoring $nfv until it is revised" + rm -rf $nfv + done ############################################################################### @@ -32,25 +36,22 @@ build-local-repository: only: - merge_requests script: - - echo "Build OK" + - echo "Using OSM CLI repo-index tool to validate packages" - export LC_ALL=C.UTF-8 - export LANG=C.UTF-8 - 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 + - echo "Packages validated" -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" +# TODO: Create and push to FTP repo +#publish-repository: +# # Builds the repository and pushes it to ftp site when a MR is accepted +# 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