1
0
mirror of https://github.com/docker/compose.git synced 2025-04-08 17:05:13 +02:00

publish package on PyPI

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2019-12-09 16:41:05 +01:00 committed by Nicolas De loof
parent d6c13b69c3
commit 31396786ba

@ -178,9 +178,17 @@ pipeline {
steps {
checkout scm
withCredentials([[$class: "FileBinding", credentialsId: 'pypirc-docker-dsg-cibot', variable: 'PYPIRC']]) {
sh './script/release/python-package'
sh """
virtualenv venv-publish
source venv-publish/bin/activate
python setup.py sdist bdist_wheel
pip install twine
twine upload --config-file ${PYPIRC} ./dist/docker-compose-${env.TAG_NAME}.tar.gz ./dist/docker_compose-${env.TAG_NAME}-py2.py3-none-any.whl
"""
}
archiveArtifacts artifacts: 'dist/*', fingerprint: true
}
post {
sh 'deactivate; rm -rf venv-publish'
}
}
}