Commit e12c7e62 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

TestPipeline: removed TWINE variables from the stage.

parent 5883cb9f
Loading
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -120,9 +120,6 @@ linting:csp-lmc-common:
.publish_python_common:
  stage: publish_common
  image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest
  variables:
    TWINE_USERNAME: $TWINE_USERNAME
    TWINE_PASSWORD: $TWINE_PASSWORD
  tags:
    - k8srunner
  before_script:
@@ -130,19 +127,17 @@ linting:csp-lmc-common:

.publish_python_dev_common:
  extends: .publish_python_common
  variables:
    TWINE_USERNAME: gitlab-ci-token
    TWINE_PASSWORD: $CI_JOB_TOKEN
    PACKAGE: $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA)
  except: [master]
  script:
    - cd $BUILD_PATH
    - cat $TESTPIPRC  > /tmp/.pypirc
    - echo $PACKAGE
    - twine upload --repository-url https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/pypi  --verbose $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA)
    - twine upload --repository gitlab --config-file /tmp/.pypirc --verbose $(ls -d ./dist/*.whl | grep $CI_COMMIT_SHORT_SHA)

.publish_python_release_common:
  extends: .publish_python_common
  variables:
    TWINE_USERNAME: $TWINE_USERNAME
    TWINE_PASSWORD: $TWINE_PASSWORD
  only: [master]
  script:
    - cd $COMMON_BUILD_PATH