Skip to content

Commit aed23a2

Browse files
authored
Merge pull request #2 from newrelic/azure-publish
Initialize publish
2 parents 345f1be + 0a9dc27 commit aed23a2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

azure-pipelines-publish.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Azure Pipeline that publishes to maven central on every master merge.
2+
name: Publish - Java Log Extensions
3+
trigger:
4+
- master
5+
pr: none
6+
7+
pool:
8+
vmImage: 'ubuntu-latest'
9+
10+
steps:
11+
- task: DownloadSecureFile@1
12+
name: secring
13+
displayName: 'Download secring'
14+
inputs:
15+
secureFile: 'secring.gpg'
16+
17+
- task: DownloadSecureFile@1
18+
name: gradleprops
19+
displayName: 'Download gradle.properties'
20+
inputs:
21+
secureFile: 'gradle.properties'
22+
23+
- script: |
24+
echo Setting up secure things...
25+
echo Making .gradle directory...
26+
mkdir ~/.gradle
27+
echo Done!
28+
echo Moving gradle.properties into it...
29+
cp $(gradleprops.secureFilePath) ~/.gradle/
30+
echo Done!
31+
32+
33+
- task: Gradle@2
34+
inputs:
35+
workingDirectory: ''
36+
gradleWrapperFile: 'gradlew'
37+
options: "-Psigning.secretKeyRingFile=$(secring.secureFilePath) -PreleaseVersion=$(releaseVersion)"
38+
javaHomeOption: 'JDKVersion'
39+
jdkVersionOption: '1.8'
40+
jdkArchitectureOption: 'x64'
41+
publishJUnitResults: true
42+
testResultsFiles: '**/TEST-*.xml'
43+
tasks: 'check publish'

0 commit comments

Comments
 (0)