also fix finding latest_tag for releases

This commit is contained in:
Jakub Sokołowski 2018-05-24 11:12:24 +02:00
parent bdd843d209
commit e6d556679d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ timeout(90) {
checkout scm
sh 'git fetch --tags'
latest_tag = sh(returnStdout: true, script: 'git describe --tags `git rev-list --tags=release --max-count=1`').trim()
latest_tag = sh(
returnStdout: true,
script: 'git describe --tags `git rev-list --tags=\'[0-9]*.[0-9]*.[0-9]*\' --max-count=1`'
).trim()
sh 'rm -rf node_modules'
sh 'cp .env.nightly .env'
sh 'lein deps'