Merge pull request #2839 from status-im/bugfix/fix-jenkinsfile-to-use-scm-module

fix for jenkinsfile to use correct scm checkout procedure
This commit is contained in:
Ivan Borovkov 2017-12-28 15:07:30 +02:00 committed by GitHub
commit 635b6ad649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

5
Jenkinsfile vendored
View File

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