forked from newrelic/newrelic-telemetry-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-publish.yml
43 lines (37 loc) · 1015 Bytes
/
azure-pipelines-publish.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
# Azure Pipeline that publishes to maven central on every master merge.
name: Upload to Maven Central Sonatype
trigger:
- master
pr: none
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DownloadSecureFile@1
name: secring
displayName: 'Download secring'
inputs:
secureFile: 'secring.gpg'
- task: DownloadSecureFile@1
name: gradleprops
displayName: 'Download gradle.properties'
inputs:
secureFile: 'gradle.properties'
- script: |
echo Setting up secure things...
echo Making .gradle directory...
mkdir ~/.gradle
echo Done!
echo Moving gradle.properties into it...
cp $(gradleprops.secureFilePath) ~/.gradle/
echo Done!
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
options: "-Psigning.secretKeyRingFile=$(secring.secureFilePath)"
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'check publish'