Skip to content

Commit

Permalink
upgrade pip [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
naesheim committed Feb 24, 2021
1 parent 68c09b1 commit 781a2a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent any
environment {
PYPI_ACCESS_TOKEN = credentials('naesheim-private-pypi')
RELEASE = sh(script: 'test -n "$(git log -1 --pretty=oneline| awk \'/deploy2/ {print $1}\')" && echo true || echo false',returnStdout: true).trim()
RELEASE = sh(script: 'test -n "$(git log -1 --pretty=oneline| awk \'/deploy/ {print $1}\')" && echo true || echo false',returnStdout: true).trim()
}
stages {
stage('Set ut testing environment') {
Expand All @@ -24,14 +24,14 @@ pipeline {
}

stage('Upload Python package') {
when {
when {
environment name: "RELEASE", value: "true"
}
steps {
sh '''
rm -rf dist
. venv/bin/activate
pip3 install twine wheel
pip3 install --upgrade pip twine wheel
python3 setup.py sdist bdist_wheel
python3 -m twine upload -u __token__ -p $PYPI_ACCESS_TOKEN dist/*
'''
Expand Down

0 comments on commit 781a2a1

Please sign in to comment.