-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from refilc/dev
dev to master (beta v5.0.1)
- Loading branch information
Showing
72 changed files
with
2,848 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
pipeline { | ||
agent any | ||
|
||
environment { | ||
ANDROID_SDK = '/home/jenkins/flutter_things/android-sdk' | ||
ANDROID_PATH="$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools" | ||
FLUTTER = '/home/jenkins/flutter_things/flutter/bin' | ||
PATH = "$PATH:$ANDROID_PATH:$FLUTTER" | ||
//TODO: need to fix flutter | ||
} | ||
|
||
|
||
stages { | ||
stage('Copy Key Properties') { | ||
steps { | ||
// Copy the key.properties file | ||
sh 'cp /home/jenkins/key.properties refilc/android/key.properties' | ||
} | ||
} | ||
|
||
stage('Flutter Doctor') { | ||
steps { | ||
// Ensure Flutter is set up correctly | ||
sh 'flutter doctor' | ||
} | ||
} | ||
|
||
stage('Dependencies') { | ||
steps { | ||
// Get Flutter dependencies | ||
sh 'cd refilc && flutter pub get' | ||
} | ||
} | ||
|
||
stage('Build') { | ||
steps { | ||
// Build the Flutter project | ||
sh 'cd refilc && flutter build apk --release' | ||
} | ||
} | ||
|
||
stage('Archive') { | ||
steps { | ||
// Archive the APK | ||
archiveArtifacts artifacts: 'build/app/outputs/flutter-apk/app-release.apk', fingerprint: true | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
// Clean up workspace after build | ||
cleanWs() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.