File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33def doPythonWheels () {
44 version = sh(script : ' git describe --tags \$ (git rev-list --tags --max-count=1) || true' , returnStdout : true ). trim()
5+ checkTag = sh(script : ' git describe --tags --exact-match ${GIT_COMMIT}' , returnStatus : true )
56 repo = " master"
6- if (env . GIT_LOCAL_BRANCH != " master " ) {
7+ if (! checkTag ) {
78 version + = " .dev" + env. BUILD_NUMBER
89 repo = " develop"
910 }
@@ -22,7 +23,7 @@ def publishWheels() {
2223 sh(script : " cd wheelhouse && find . -type f -name \" iroha*.whl\" -exec curl -u ${ CI_NEXUS_USERNAME} :${ CI_NEXUS_PASSWORD} --upload-file {} https://nexus.iroha.tech/repository/artifacts/iroha-python/${ repo} /{} \\ ;" )
2324 sh(script : " cd wheelhouse && find . -type f -name \" iroha*.whl\" -exec echo 'https://nexus.iroha.tech/service/rest/repository/browse/artifacts/iroha-python/${ repo} /{} \\ ;" )
2425 }
25- if (env . GIT_LOCAL_BRANCH == ' ' && checkTag) {
26+ if (checkTag) {
2627 iC = docker. image(' quay.io/pypa/manylinux1_x86_64' )
2728 iC. inside(" " ) {
2829 sh(script : ' /opt/python/cp35-cp35m/bin/pip install twine' , returnStdout : true )
You can’t perform that action at this time.
0 commit comments