From b30d2b23fdd175321ed0963ba22e26b52e3c108e Mon Sep 17 00:00:00 2001
From: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date: Tue, 13 Apr 2021 12:36:22 +0200
Subject: [PATCH] Disable repo generation in gitlab ci pipeline

Currently the repo generation with "osm repo-index" fails due to
bug 1493. Because of that, the gitlab CI pipeline fails. This change
disables the repo generation until the bug is fixed.

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
---
 .gitlab-ci.yml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4fb6b276..33105100 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,11 +18,11 @@ publish-repository:
     - 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
+    # - 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
@@ -48,11 +48,11 @@ build-local-repository:
     - 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/Premerge
-        EOF
+    # - 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
-- 
GitLab