search explicitly for release/xyz tags

This commit is contained in:
Jakub Sokołowski 2018-05-16 08:26:09 +02:00
parent aa108cda12
commit f69f19ec04
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -33,7 +33,7 @@ node ('macos1'){
checkout scm
sh 'git fetch --tags'
latest_tag = sh(returnStdout: true, script: 'git describe --tags `git rev-list --tags --max-count=1`').trim()
latest_tag = sh(returnStdout: true, script: 'git describe --tags `git rev-list --tags=release --max-count=1`').trim()
sh 'git tag -d ' + latest_tag
sh 'rm -rf node_modules'
sh 'cp .env.nightly .env'