File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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'
You can’t perform that action at this time.
0 commit comments