-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathJenkinsfile
More file actions
29 lines (26 loc) · 1.37 KB
/
Jenkinsfile
File metadata and controls
29 lines (26 loc) · 1.37 KB
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
@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'),
]
// Silence optional SDK pin warnings in CI
env.SHARED_FEATURES_VERSION_OVERRIDE = ""
// Avoid project-level parallelism to stabilize AGP data binding and transforms
env.ORG_GRADLE_PARALLEL = "false"
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-jdk21:latest',
publishCmd: 'publishReleaseApk',
jobParams: jobParams,
appPushNoti: true,
dojoProductType: 'android',
uploadToNexusFor: ['master','develop','staging']
)
pipeline.runPipeline('fearless')