diff --git a/Jenkinsfile b/Jenkinsfile index efe899e..02b1935 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,9 @@ pipeline { } stage('Publish') { when { - buildingTag() + expression { + return sh(returnStdout: true, script: 'git tag --contains').trim().length() > 0 + } } steps { sh './gradlew publish'