Files
breezyslam/Jenkinsfile
2020-08-01 06:00:04 +00:00

29 lines
584 B
Groovy

pipeline {
agent {
docker {
image 'vato.ddns.net:8083/python-infra:buster'
}
}
stages {
stage('Build') {
steps {
dir(path: 'python') {
sh 'python setup.py bdist_wheel'
}
}
}
stage('Deploy') {
steps {
sh 'python -m twine upload -u $TWINE_COMMON_CREDS_USR -p $TWINE_COMMON_CREDS_PSW python/dist/*'
}
}
}
environment {
TWINE_REPOSITORY_URL = 'https://vato.ddns.net/nexus/repository/pypi-local/'
TWINE_COMMON_CREDS = 'credentials(\'2eddcc32-2914-4b5c-bec4-52d40cfba020\')'
}
}