-
Notifications
You must be signed in to change notification settings - Fork 31
/
Jenkinsfile
24 lines (22 loc) · 1.18 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
@Library('jenkins-library')
// Job properties
def jobParams = [
booleanParam(defaultValue: false, description: 'push to the dev profile', name: 'prDeployment'),
booleanParam(defaultValue: false, description: 'Upload builds to nexus(master,develop and staging branches upload always)', name: 'upload_to_nexus'),
]
def pipeline = new org.android.AppPipeline(
steps: this,
sonar: true,
sonarCmd: 'sonar -x :core-db:compileDebugUnitTestKotlin -x :core-db:compileDebugAndroidTestKotlin -x :feature-crowdloan-impl:compileDebugAndroidTestKotlin -x :runtime:compileDebugUnitTestKotlin -x :app:kaptDebugAndroidTestKotlin -x :app:compileDebugAndroidTestKotlin -Dsonar.coverage.jacoco.xmlReportPaths=**/coverage/*.xml',
sonarProjectName: 'fearless-android',
sonarProjectKey: 'fearless:fearless-android',
pushReleaseNotes: false,
testCmd: 'runTest',
dockerImage: 'build-tools/android-build-box-jdk17:latest',
publishCmd: 'publishReleaseApk',
jobParams: jobParams,
appPushNoti: true,
dojoProductType: 'android',
uploadToNexusFor: ['master','develop','staging']
)
pipeline.runPipeline('fearless')