-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbamboo.gradle
More file actions
30 lines (19 loc) · 781 Bytes
/
bamboo.gradle
File metadata and controls
30 lines (19 loc) · 781 Bytes
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
// -=-=-=-=-= Bamboo Section =-=-=-=-=-
def buildAliases = [
'stageClean' : ['clean'],
'stageStaticAnalysis' : ['lint', 'ktlintCheck', 'detekt'],
'stageBuild' : ['assemble'],
'stageJvmTest' : ['clean', 'test'],
'stageTagRepository' : ['tagRepository'],
'static' : ['clean', 'lint', 'ktlintCheck', 'detekt', 'test'],
'bamboo' : ['clean', 'lint', 'ktlintCheck', 'detekt', 'test', 'assemble'],
'reinstall' : ['clean', 'uninstallDebug', 'installDebug'],
'' : ['', ''],
]
def expandedTaskList = []
gradle.startParameter.taskNames.each
{
expandedTaskList << (buildAliases[it] ? buildAliases[it] : it)
}
gradle.startParameter.taskNames = expandedTaskList.flatten()
// -=-=-=-=-= End Bamboo =-=-=-=-=-