Skip to content
Snippets Groups Projects
Commit 0cf88f35 authored by Krishna Prasad's avatar Krishna Prasad
Browse files

Merge branch 'development' of...

Merge branch 'development' of gitlab.niveussolutions.com:karthik.shetty/apkforfastlane into development
parents e7d6acc4 ba9e6ab6
No related branches found
No related tags found
No related merge requests found
......@@ -19,17 +19,18 @@ pipeline {
}
}
stage('Build APK') {
stage('upload to drive') {
steps {
script {
// Set up Gradle environment
def gradleHome = tool 'gradle'
env.PATH = "${gradleHome}/bin:${env.PATH}"
// Use absolute path to Fastlane
def fastlanePath = '/home/karthik_shetty_niveussolutions_c/usr/local/bin/fastlane'
env.PATH = "${fastlanePath}:${env.PATH}"
// Run Gradle build
sh './gradlew assembleRelease'
// Run Fastlane deploy for Firebase App distribution
sh 'sudo fastlane deployToDrive'
}
}
} */
stage('Firebase App Distribution') {
......@@ -46,6 +47,8 @@ pipeline {
}
}
post {
always {
// Clean up steps if needed
......
......@@ -44,6 +44,7 @@ platform :android do
groups_file: "fastlane/groups.txt",
service_credentials_file: ENV["FIREBASE_LOGIN_CREDENTIALS"]
)
end
desc "build the apk"
......@@ -62,9 +63,9 @@ platform :android do
lane :deployToDrive do
gradle(task: "clean assembleDebug")
upload_to_google_drive(
drive_keyfile: 'drive_key.json',
drive_keyfile: 'fastlane/fastlane-admin-app-distribution.json',
service_account: true,
folder_id: 'ID_OF_THE_FOLDER_GOES_HERE',
folder_id: '1pJw3ys99whpeV4CMPlhkoLRwZduBJk4S',
upload_files: ['app/build/outputs/apk/debug/app-debug.apk']
)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment