Last active
February 7, 2020 08:11
-
-
Save RanaRanvijaySingh/47fba2bbdea82a08d2777c83de390c32 to your computer and use it in GitHub Desktop.
BasicJenkinsPipelineBuild
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
pipeline { | |
agent any | |
stages { | |
stage('GIT PULL') { | |
steps { | |
git branch: "develop", url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git' | |
} | |
} | |
stage('TEST') { | |
steps { | |
sh 'flutter test' | |
} | |
} | |
stage('BUILD') { | |
steps { | |
sh ''' | |
#!/bin/sh | |
flutter build apk --debug | |
''' | |
} | |
} | |
stage('DISTRIBUTE') { | |
steps { | |
appCenter apiToken: 'f51cd29ba6b2d34a84cd99bc37348db77624c614', | |
ownerName: 'ranaranvijaysingh9-gmail.com', | |
appName: 'Flutter-Starter', | |
pathToApp: 'build/app/outputs/apk/debug/app-debug.apk', | |
distributionGroups: 'AlphaTester' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment