This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
52 lines (46 loc) · 1.49 KB
/
azure-pipelines.yml
File metadata and controls
52 lines (46 loc) · 1.49 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
pr:
- master
stages:
- stage: Compliance
jobs:
- job:
steps:
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
- stage: AccumuloSparkConnector
jobs:
- job:
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: Maven@3
displayName: 'Accumulo Spark Connector components'
inputs:
mavenPomFile: 'connector/pom.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
goals: 'package'
options: '-B' # batch mode for non-interactive release
- task: PublishPipelineArtifact@1
inputs:
targetPath: connector/iterator/target/microsoft-accumulo-spark-iterator-1.0.4-shaded.jar
artifactName: accumulo-spark-iterator
- task: PublishPipelineArtifact@1
inputs:
targetPath: connector/datasource/target/microsoft-accumulo-spark-datasource-1.0.4-shaded.jar
artifactName: accumulo-spark-datasource
- bash: cd connector/publish && ./publish.sh
displayName: Publish to Sonatype
condition: variables['ossrh_gpg']
env:
# these are credentials used to publish to oss.sonatype.org
# credentials are stored as secrets in the build definition
ossrh_gpg: $(ossrh_gpg)
ossrh_username: $(ossrh_username)
ossrh_password: $(ossrh_password)