Skip to content

Instantly share code, notes, and snippets.

@RanaRanvijaySingh
Last active February 7, 2020 08:11
Show Gist options
  • Save RanaRanvijaySingh/47fba2bbdea82a08d2777c83de390c32 to your computer and use it in GitHub Desktop.
Save RanaRanvijaySingh/47fba2bbdea82a08d2777c83de390c32 to your computer and use it in GitHub Desktop.
BasicJenkinsPipelineBuild
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