fix for jenkinsfile to use correct scm checkout procedure

This commit is contained in:
Ivan Borovkov 2017-12-28 13:06:08 +02:00
parent 153cd02b86
commit 112e6dc4d3
1 changed files with 2 additions and 5 deletions

7
Jenkinsfile vendored
View File

@ -15,11 +15,8 @@ node ('macos1') {
stage('Git & Dependencies') {
slackSend color: 'good', message: BRANCH_NAME + ' build started. ' + env.BUILD_URL
git([url: 'https://github.com/status-im/status-react.git', branch: BRANCH_NAME])
sh 'git checkout -- .'
sh 'git checkout develop'
sh 'git checkout ' + BRANCH_NAME
checkout scm
sh 'rm -rf node_modules'
sh 'cp .env.jenkins .env'
sh 'lein deps && npm install && ./node_modules/re-natal/index.js deps'