Skip to content

Commit 0eab990

Browse files
committed
Fix build wheels
Signed-off-by: Alexey Rodionov <[email protected]>
1 parent 113cc1a commit 0eab990

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.jenkinsci/linux-build-wheels.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
def 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)

0 commit comments

Comments
 (0)