From 68997983e57080e2fadd89eee5ac7643901aec19 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 9 May 2018 15:19:18 +0300 Subject: [PATCH] fix .version file creation in release builds --- Jenkinsfile.release | 4 ++-- Jenkinsfile.upload_release | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile.release b/Jenkinsfile.release index 9e92384a4b..10305ac82f 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -34,11 +34,11 @@ node ('macos1'){ error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/version`" } + checkout + version = BRANCH_NAME.substring(8) sh 'echo "' + version + '" > .version' - checkout scm - sh 'git fetch --tags' sh 'rm -rf node_modules' diff --git a/Jenkinsfile.upload_release b/Jenkinsfile.upload_release index 93bfb0dda4..3832f36f2a 100644 --- a/Jenkinsfile.upload_release +++ b/Jenkinsfile.upload_release @@ -34,13 +34,11 @@ node ('macos1'){ error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/version`" } + checkout scm + version = BRANCH_NAME.substring(8) sh 'echo "' + version + '" > .version' - println version - - checkout scm - sh 'git fetch --tags' sh 'rm -rf node_modules'