Skip to content

Commit

Permalink
get tag_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Geapefurit committed Oct 8, 2023
1 parent d918d2e commit ba0078a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,11 @@ pipeline {
git fetch origin --prune
'''.stripIndent())

environment {
TAG_VERSION = sh(returnStdout: true,
script {
env.TAG_VERSION = sh(returnStdout: true,
script: 'git tag|grep \'[13579]$\'|tail -n 1'
)
echo "Git committer email: ${TAG_VERSION}"
}

}
Expand Down

0 comments on commit ba0078a

Please sign in to comment.