forked from fresearchgroup/Community-Content-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
42 lines (27 loc) · 1.04 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
node {
// Mark the code checkout 'stage'....
stage ('Stage Checkout'){
// Checkout code from repository and update any submodules
checkout scm
}
// sh 'git submodule update --init'
//stage 'Stage Build'
stage('build') {
echo 'Building..'
sh "./h5p_etherpad.sh"
}
stage('HelloWorld') {
echo 'Hello World'
}
//branch name from Jenkins environment variables
// echo "My branch is: ${env.BRANCH_NAME}"
// def flavor = flavor(env.BRANCH_NAME)
// echo "Building flavor ${flavor}"
//build your gradle flavor, passes the current build number as a parameter to gradle
// sh "./gradlew clean assemble${flavor}Debug -PBUILD_NUMBER=${env.BUILD_NUMBER}"
// stage 'Stage Archive'
//tell Jenkins to archive the apks
// archiveArtifacts artifacts: 'app/build/outputs/apk/*.apk', fingerprint: true
// stage 'Stage Upload To Fabric'
// sh "./gradlew crashlyticsUploadDistribution${flavor}Debug -PBUILD_NUMBER=${env.BUILD_NUMBER}"
}