mirror of
https://github.com/status-im/status-react.git
synced 2025-02-18 05:48:12 +00:00
Jenkinsfile.release: use BRANCH_NAME
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
parent
7e1376aeaa
commit
cffa4c5759
@ -27,12 +27,13 @@ node ('macos1'){
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
stage('Git & Dependencies') {
|
stage('Git & Dependencies') {
|
||||||
slackSend color: 'good', message: 'Release 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: 'develop'])
|
|
||||||
// Checkout master because used for iOS Plist version information
|
checkout scm
|
||||||
sh 'git fetch --tags'
|
|
||||||
sh 'git checkout -- .'
|
sh 'git checkout -- .'
|
||||||
sh 'git checkout develop'
|
sh 'git checkout remotes/origin/' + BRANCH_NAME
|
||||||
|
sh 'git fetch --tags'
|
||||||
|
|
||||||
sh 'rm -rf node_modules'
|
sh 'rm -rf node_modules'
|
||||||
sh 'cp .env.prod .env'
|
sh 'cp .env.prod .env'
|
||||||
sh 'lein deps'
|
sh 'lein deps'
|
||||||
@ -95,4 +96,4 @@ node ('macos1'){
|
|||||||
def c = (testPassed ? 'good' : 'warning' )
|
def c = (testPassed ? 'good' : 'warning' )
|
||||||
slackSend color: c, message: 'Release build \nTests: ' + (testPassed ? ':+1:' : ':-1:') + ')\nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl
|
slackSend color: c, message: 'Release build \nTests: ' + (testPassed ? ':+1:' : ':-1:') + ')\nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user