-
Notifications
You must be signed in to change notification settings - Fork 11
/
azure-pipelines.yml
50 lines (43 loc) · 1.43 KB
/
azure-pipelines.yml
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
43
44
45
46
47
48
49
50
variables:
RESOURCE_GROUP: databricksmonitoring
RESOURCE_NAME_PREFIX: databricksmonitoring
DATABRICKS_HOST: https://northeurope.azuredatabricks.net/
DATABRICKS_TOKEN: dapi00000000000000000000000000000000
LOG_ANALYTICS_READER_CLIENT_ID: 00000000-0000-0000-0000-000000000000
LOG_ANALYTICS_READER_CLIENT_SECRET: 00000000-0000-0000-0000-000000000000
SPARK_VERSION: 2.4.0
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: AzureCLI@1
displayName: Create Azure resources
inputs:
azureSubscription: ARMConnection
scriptPath: before-build.sh
addSpnToEnvironment: true
- task: Maven@3
displayName: Build Maven
inputs:
mavenPomFile: 'spark-monitoring/src/pom.xml'
mavenOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
#Maven command line arguments:
# -B: batch mode, reduce output verbosity
# -D...: disable verbose output of artifact download information
goals: 'package -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
- task: AzureCLI@1
displayName: Deploy Databricks jobs
inputs:
azureSubscription: ARMConnection
scriptPath: deploy-databricks-jobs.sh
- task: AzureCLI@1
displayName: Deploy Grafana
inputs:
azureSubscription: ARMConnection
scriptPath: deploy-grafana.sh