diff --git a/Jenkinsfile.nightly_fastlane b/Jenkinsfile.nightly_fastlane index f29dd0b3f7..4f83828b81 100644 --- a/Jenkinsfile.nightly_fastlane +++ b/Jenkinsfile.nightly_fastlane @@ -12,7 +12,6 @@ def installJSDeps() { def installed = false while (!installed && attempt <= maxAttempts) { println "#${attempt} attempt to install npm deps" - sh 'scripts/prepare-for-platform.sh mobile' sh 'npm install' installed = fileExists('node_modules/web3/index.js') attemp = attempt + 1 @@ -36,12 +35,12 @@ timeout(90) { checkout scm - version = readFile("${env.WORKSPACE}/VERSION").trim() - sh 'git fetch --tags' sh 'rm -rf node_modules' sh 'cp .env.nightly .env' + sh 'scripts/prepare-for-platform.sh mobile' + version = readFile("${env.WORKSPACE}/VERSION").trim() installJSDeps() sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack' diff --git a/Jenkinsfile.release b/Jenkinsfile.release index 16c0f0d36d..bc5dd3bd4c 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -12,7 +12,6 @@ def installJSDeps() { def installed = false while (!installed && attempt <= maxAttempts) { println "#${attempt} attempt to install npm deps" - sh 'scripts/prepare-for-platform.sh mobile' sh 'npm install' installed = fileExists('node_modules/web3/index.js') attemp = attempt + 1 @@ -36,13 +35,13 @@ timeout(90) { checkout scm - version = readFile("${env.WORKSPACE}/VERSION").trim() - sh 'git fetch --tags' sh 'rm -rf node_modules' sh 'cp .env.prod .env' + sh 'scripts/prepare-for-platform.sh mobile' + version = readFile("${env.WORKSPACE}/VERSION").trim() installJSDeps() sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack' diff --git a/Jenkinsfile.upload_release_android b/Jenkinsfile.upload_release_android index c4dd6248c7..de63a6a481 100644 --- a/Jenkinsfile.upload_release_android +++ b/Jenkinsfile.upload_release_android @@ -12,7 +12,6 @@ def installJSDeps() { def installed = false while (!installed && attempt <= maxAttempts) { println "#${attempt} attempt to install npm deps" - sh 'scripts/prepare-for-platform.sh mobile' sh 'npm install' installed = fileExists('node_modules/web3/index.js') attemp = attempt + 1 @@ -40,13 +39,13 @@ timeout(90) { checkout scm - version = readFile("${env.WORKSPACE}/VERSION").trim() - sh 'git fetch --tags' sh 'rm -rf node_modules' sh 'cp .env.prod .env' + sh 'scripts/prepare-for-platform.sh mobile' + version = readFile("${env.WORKSPACE}/VERSION").trim() installJSDeps() sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack' diff --git a/Jenkinsfile.upload_release_ios b/Jenkinsfile.upload_release_ios index cdaec172bd..3cfb53eaa4 100644 --- a/Jenkinsfile.upload_release_ios +++ b/Jenkinsfile.upload_release_ios @@ -12,7 +12,6 @@ def installJSDeps() { def installed = false while (!installed && attempt <= maxAttempts) { println "#${attempt} attempt to install npm deps" - sh 'scripts/prepare-for-platform.sh mobile' sh 'npm install' installed = fileExists('node_modules/web3/index.js') attemp = attempt + 1 @@ -39,13 +38,13 @@ timeout(90) { checkout scm - version = readFile("${env.WORKSPACE}/VERSION").trim() - sh 'git fetch --tags' sh 'rm -rf node_modules' sh 'cp .env.prod .env' + sh 'scripts/prepare-for-platform.sh mobile' + version = readFile("${env.WORKSPACE}/VERSION").trim() installJSDeps() sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'