Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions projects/control-service/cicd/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ control_service_publish_api_client:
stage: publish_artifacts
script:
- apk add --no-cache py-pip openjdk17-jdk git
- pip install -U pip setuptools wheel twine
- pip install -U pip build twine
- ./projects/control-service/projects/gradlew -p ./projects/control-service/projects/model buildPython
- cd projects/control-service/projects/model/apidefs/datajob-api/build
- rm -rf dist/ && cd ./python
- python setup.py sdist --formats=gztar
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
- python -m build
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
retry: !reference [.control_service_retry, retry_options]
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ cd build/python
python3.7 -m venv venv
source venv/bin/activate

pip install -U pip setuptools wheel twine
pip install -U pip build twine
pip install -r requirements.txt

rm -rf dist/
python setup.py sdist --formats=gztar
twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz
python -m build
twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*
6 changes: 3 additions & 3 deletions projects/vdk-control-cli/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ vdk-control-cli-release:
- echo "GIT_BRANCH='$CI_COMMIT_REF_NAME'" >> $build_info_file
- echo "GITLAB_CI_JOB_ID='$CI_JOB_ID'" >> $build_info_file
- echo "BUILD_DATE='$(date -u)'" >> $build_info_file
- pip install -U pip setuptools wheel twine
- python setup.py sdist --formats=gztar
- twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
- pip install -U pip build twine
- python -m build
- twine upload --repository-url "$PIP_REPO_UPLOAD_URL" -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
Expand Down
6 changes: 3 additions & 3 deletions projects/vdk-core/cicd/release-vdk-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ else
echo "GIT_BRANCH='$CI_COMMIT_REF_NAME'" >> $build_info_file
fi

pip install -U pip setuptools wheel twine
python setup.py sdist --formats=gztar
pip install -U pip build twine
python -m build
# provide credentials as Gitlab variables
twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
6 changes: 3 additions & 3 deletions projects/vdk-heartbeat/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ vdk-heartbeat-release:
stage: release
script:
- echo "$(cat version.txt | grep -o '[0-9]\.[0-9]').$CI_PIPELINE_ID" > version.txt
- pip install -U pip setuptools wheel twine
- python setup.py sdist --formats=gztar
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
- pip install -U pip build twine
- python -m build
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
Expand Down
6 changes: 3 additions & 3 deletions projects/vdk-plugins/.plugin-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
- echo "Release plugin $PLUGIN_NAME"
- cd $PLUGIN_NAME/ || exit 1
- sed -ri "s/__version__ = \"([[:digit:]]\.[[:digit:]]\.).*\"$/__version__ = \"\1${VDK_PATCH_VERSION}\"/g" setup.py
- pip install -U pip setuptools wheel twine
- python setup.py sdist --formats=gztar
- pip install -U pip build twine
- python -m build
# provide the credentials as Gitlab variables
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
retry: !reference [.retry, retry_options]
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
Expand Down
6 changes: 3 additions & 3 deletions projects/vdk-plugins/airflow-provider-vdk/.airflow-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ release-airflow-provider-vdk:
- echo "Releasing airflow-provider-vdk..."
- cd airflow-provider-vdk/ || exit 1
- sed -ri "s/__version__ = \"([[:digit:]]\.[[:digit:]]\.).*\"$/__version__ = \"\1${VDK_PATCH_VERSION}\"/g" setup.py
- pip install -U pip setuptools wheel twine
- python setup.py sdist --formats=gztar
- pip install -U pip build twine
- python -m build
# provide the credentials as Gitlab variables
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/*tar.gz --verbose
- twine upload --repository-url $PIP_REPO_UPLOAD_URL -u "$PIP_REPO_UPLOAD_USER_NAME" -p "$PIP_REPO_UPLOAD_USER_PASSWORD" dist/* --verbose
retry: !reference [.retry, retry_options]
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
Expand Down
Loading