Проверка5
test-org/test-ci-cd/pipeline/pr-main There was a failure building this commit Details

pull/9/head
yuobrezkov 2025-04-09 16:49:50 +03:00
parent 82b6a1b765
commit 23700c92af
1 changed files with 1 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -31,6 +31,7 @@ pipeline {
steps { steps {
script { script {
def hasTags = sh(script: "git tag -l | wc -l", returnStdout: true).trim().toInteger() > 0 def hasTags = sh(script: "git tag -l | wc -l", returnStdout: true).trim().toInteger() > 0
echo "${hasTags}"
if (hasTags) { if (hasTags) {
def lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim() def lastVersion = sh(script: "git describe --tags --abbrev=0", returnStdout: true).trim()
} }