mirror of
https://github.com/docker/compose.git
synced 2025-07-24 06:04:57 +02:00
publish package on PyPI
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
d6c13b69c3
commit
31396786ba
@ -178,9 +178,17 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
withCredentials([[$class: "FileBinding", credentialsId: 'pypirc-docker-dsg-cibot', variable: 'PYPIRC']]) {
|
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user