@@ -13,65 +13,78 @@ trigger:
13
13
- " *"
14
14
15
15
stages :
16
- # - stage: CI
17
- # condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags'))
18
- # jobs:
19
- # - job: Windows
20
- # strategy:
21
- # matrix:
22
- # VS2019:
23
- # imageName: 'windows-2019'
24
- # TILEDB_S3: ON
25
- # pool:
26
- # vmImage: $(imageName)
27
- # steps:
28
- # - task: Gradle@2
29
- # inputs:
30
- # workingDirectory: ''
31
- # gradleWrapperFile: 'gradlew.bat'
32
- # gradleOptions: '-Xmx3072m'
33
- # javaHomeOption: 'JDKVersion'
34
- # jdkVersionOption: 'default'
35
- # tasks: 'checkFormat assemble test'
36
- #
37
- # - job: Linux_OSX
38
- # strategy:
39
- # matrix:
40
- # ubuntu_18:
41
- # imageName: 'ubuntu-18.04'
42
- # macOS:
43
- # imageName: 'macOS-10.14'
44
- # pool:
45
- # vmImage: $(imageName)
46
- # steps:
47
- # - template: ci/tiledb-java-linux_osx.yml
48
- #
49
- # - stage: BuildNativeLibs
50
- # condition: or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
51
- # jobs:
52
- # - job: Linux_OSX
53
- # strategy:
54
- # matrix:
55
- # ubuntu_18:
56
- # imageName: 'ubuntu-18.04'
57
- # macOS:
58
- # imageName: 'macOS-10.14'
59
- # pool:
60
- # vmImage: $(imageName)
61
- # steps:
62
- # - template: ci/tiledb-java-linux_osx-release.yml
63
- # - job: Windows
64
- # strategy:
65
- # matrix:
66
- # windows_19:
67
- # imageName: 'windows-2019'
68
- # pool:
69
- # vmImage: $(imageName)
70
- # steps:
71
- # - template: ci/tiledb-java-windows-release.yml
16
+ - stage : CI
17
+ condition : not(startsWith(variables['Build.SourceBranch'], 'refs/tags'))
18
+ jobs :
19
+ - job : Windows
20
+ strategy :
21
+ matrix :
22
+ VS2019 :
23
+ imageName : ' windows-2019'
24
+ TILEDB_S3 : ON
25
+ pool :
26
+ vmImage : $(imageName)
27
+ steps :
28
+ - task : Gradle@2
29
+ inputs :
30
+ workingDirectory : ' '
31
+ gradleWrapperFile : ' gradlew.bat'
32
+ gradleOptions : ' -Xmx3072m'
33
+ javaHomeOption : ' JDKVersion'
34
+ jdkVersionOption : ' default'
35
+ tasks : ' checkFormat assemble test'
36
+
37
+ - job : Linux_OSX
38
+ strategy :
39
+ matrix :
40
+ ubuntu_18 :
41
+ imageName : ' ubuntu-18.04'
42
+ macOS :
43
+ imageName : ' macOS-10.14'
44
+ pool :
45
+ vmImage : $(imageName)
46
+ steps :
47
+ - template : ci/tiledb-java-linux_osx.yml
48
+
49
+ - stage : BuildNativeLibs
50
+ condition : or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
51
+ jobs :
52
+ - job : Linux_OSX
53
+ strategy :
54
+ matrix :
55
+ ubuntu_18 :
56
+ imageName : ' ubuntu-18.04'
57
+ macOS :
58
+ imageName : ' macOS-10.14'
59
+ pool :
60
+ vmImage : $(imageName)
61
+ steps :
62
+ - template : ci/tiledb-java-linux_osx-release.yml
63
+ - job : Windows
64
+ strategy :
65
+ matrix :
66
+ windows_19 :
67
+ imageName : ' windows-2019'
68
+ pool :
69
+ vmImage : $(imageName)
70
+ steps :
71
+ - template : ci/tiledb-java-windows-release.yml
72
+
73
+ - stage : FinalJar
74
+ condition : or( eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
75
+ jobs :
76
+ - job : All_OS
77
+ strategy :
78
+ matrix :
79
+ ubuntu_18 :
80
+ imageName : ' ubuntu-18.04'
81
+ pool :
82
+ vmImage : $(imageName)
83
+ steps :
84
+ - template : ci/tiledb-java-final-jar.yml
72
85
73
- - stage : Release
74
- condition : or(eq( startsWith(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/ tags') )
86
+ - stage : GitHubRelease
87
+ condition : startsWith(variables['Build.SourceBranch'], 'refs/tags')
75
88
jobs :
76
89
- job : All_OS
77
90
strategy :
@@ -81,4 +94,18 @@ stages:
81
94
pool :
82
95
vmImage : $(imageName)
83
96
steps :
84
- - template : ci/tiledb-java-final-jar.yml
97
+ - download : current
98
+ patterns : ' final-jar/*.jar'
99
+
100
+ - bash : |
101
+ mkdir $BUILD_BINARIESDIRECTORY/jars
102
+ mv ../final-jar/*.jar $BUILD_BINARIESDIRECTORY/jars
103
+
104
+ - task : GithubRelease@0
105
+ displayName : ' GitHub Release'
106
+ inputs :
107
+ gitHubConnection : github_tiledb
108
+ repositoryName : TileDB-Inc/TileDB-Java
109
+ tag : $(Build.SourceBranchName)
110
+ action : " edit"
111
+ assets : $(Build.BinariesDirectory)/jars/*.jar
0 commit comments