-
Notifications
You must be signed in to change notification settings - Fork 0
/
bamboo.gradle
27 lines (20 loc) · 923 Bytes
/
bamboo.gradle
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
// -=-=-=-=-= Bamboo Section =-=-=-=-=-
def buildAliases = [
'stageClean' : ['clean'],
'stageBuild' : ['clean', 'assemble'],
'stageProfile' : ['dependencyUpdates', 'projectReport'],
'stageStaticAnalysis' : ['clean', 'assemble', 'lint'],
'stageJvmTest' : ['clean', 'test'],
'stageAndroidTest' : ['uninstallAll', 'clean', ':RingPublishingGDPR:connectedAndroidTest', 'createTstCoverageReport'],
'stageReleaseSnapshot': ['clean', ':RingPublishingGDPR:assembleRelease', ':RingPublishingGDPR:artifactoryPublish'],
'stageTagRepository' : ['tagRepository'],
'' : ['', ''],
]
def expandedTaskList = []
gradle.startParameter.taskNames.each {
expandedTaskList << (buildAliases[it] ? buildAliases[it] : it)
}
gradle.startParameter.taskNames = expandedTaskList.flatten()
// -=-=-=-=-= End Bamboo =-=-=-=-=-
//build.mustRunAfter clean
//uploadArchives.mustRunAfter build