forked from newrelic/java-log-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-publish.yml
43 lines (36 loc) · 1.01 KB
/
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 request
name: Publish - Java Log Extensions
trigger: none
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) -PreleaseVersion=$(releaseVersion)"
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'check publish'