Merge pull request #4287 from status-im/fix/finding-release-tag

search explicitly for release/xyz tags
This commit is contained in:
Jakub 2018-05-16 12:40:49 +02:00 committed by GitHub
commit 6f8d777cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ node ('macos1'){
checkout scm checkout scm
sh 'git fetch --tags' 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 'git tag -d ' + latest_tag
sh 'rm -rf node_modules' sh 'rm -rf node_modules'
sh 'cp .env.nightly .env' sh 'cp .env.nightly .env'