728x90
stage ('Docker build'){
environment{
gitTags = sh(retrunStdout: true, script: 'git describe --tags --abbrev=0').trim()
}
steps {
print gitTags
}
}
728x90