@@ -35,33 +35,28 @@ stages:
35
35
gradleOptions : ' -Xmx3072m'
36
36
publishJUnitResults : false
37
37
tasks : ' check :ui:jpackage -Pgeneration -PjniLocation=build/OpenCVJNI -Pheadless=true -PlogTests -Pjdk14=/opt/java/jdk-14 --stacktrace'
38
- - task : CopyFiles@2
38
+ - task : PublishPipelineArtifact@1
39
39
inputs :
40
- contents : ' ui/build/installer/GRIP-*.deb '
41
- targetFolder : $(Build.ArtifactStagingDirectory)
40
+ targetPath : ' ui/build/installer'
41
+ artifactName : ' LinuxInstaller '
42
42
- script : |
43
43
export GH_TOKEN=$(GH_TOKEN)
44
44
.azure-scripts/push-javadoc-to-gh-pages.sh
45
45
displayName: 'Publish Javadocs'
46
46
condition: |
47
47
and(not(eq(variables['Build.Reason'], 'PullRequest')),
48
48
eq(variables['Build.SourceBranch'], 'refs/heads/master'))
49
-
50
49
- task : Gradle@2
51
50
inputs :
52
51
workingDirectory : ' '
53
52
gradleWrapperFile : ' gradlew'
54
53
gradleOptions : ' -Xmx3072m'
55
54
publishJUnitResults : false
56
55
tasks : ' :ui:jpackage -Pcuda -Pjdk14=/opt/java/jdk-14 --stacktrace'
57
- - task : CopyFiles@2
56
+ - task : PublishPipelineArtifact@1
58
57
inputs :
59
- contents : ' ui/build/installer/GRIP-*.deb'
60
- targetFolder : $(Build.ArtifactStagingDirectory)
61
-
62
- - task : PublishBuildArtifacts@1
63
- inputs :
64
- artifactName : ' LinuxInstaller'
58
+ targetPath : ' ui/build/installer'
59
+ artifactName : ' LinuxInstaller-cuda'
65
60
66
61
- job : Windows_64_Bit
67
62
pool :
@@ -95,26 +90,21 @@ stages:
95
90
jdkArchitectureOption : ' x64'
96
91
publishJUnitResults : true
97
92
tasks : ' check :ui:jpackage -Pheadless=true -Pgeneration -PlogTests -PskipUITests -Pjdk14=..\build\jdk-14 --stacktrace'
98
- - task : CopyFiles@2
93
+ - task : PublishPipelineArtifact@1
99
94
inputs :
100
- contents : ' ui\build\installer\GRIP-*.exe'
101
- targetFolder : $(Build.ArtifactStagingDirectory)
102
-
95
+ targetPath : ' ui/build/installer'
96
+ artifactName : ' Win64Installer'
103
97
- task : Gradle@2
104
98
inputs :
105
99
workingDirectory : ' '
106
100
gradleWrapperFile : ' gradlew'
107
101
gradleOptions : ' -Xmx3072m'
108
102
publishJUnitResults : false
109
103
tasks : ' :ui:jpackage -Pcuda -PskipUITests -Pjdk14=..\build\jdk-14 --stacktrace'
110
- - task : CopyFiles@2
111
- inputs :
112
- contents : ' ui\build\installer\GRIP-*.exe'
113
- targetFolder : $(Build.ArtifactStagingDirectory)
114
-
115
- - task : PublishBuildArtifacts@1
104
+ - task : PublishPipelineArtifact@1
116
105
inputs :
117
- artifactName : ' Win64Installer'
106
+ targetPath : ' ui/build/installer'
107
+ artifactName : ' Win64Installer-cuda'
118
108
119
109
- job : Windows_32_Bit
120
110
pool :
@@ -157,13 +147,9 @@ stages:
157
147
# publishJUnitResults: false
158
148
# tasks: ':ui:jpackage -Pcuda -PskipUITests -Pjdk14=..\build\jdk-14 --stacktrace'
159
149
160
- - task : CopyFiles@2
161
- inputs :
162
- contents : ' ui\build\installer\GRIP-*.exe'
163
- targetFolder : $(Build.ArtifactStagingDirectory)
164
-
165
- - task : PublishBuildArtifacts@1
150
+ - task : PublishPipelineArtifact@1
166
151
inputs :
152
+ targetPath : ' ui/build/installer'
167
153
artifactName : ' Win32Installer'
168
154
169
155
- job : Mac
@@ -188,59 +174,40 @@ stages:
188
174
jdkArchitectureOption : ' x64'
189
175
publishJUnitResults : false
190
176
tasks : ' check jacocoTestReport jacocoRootReport :ui:jpackage -Pheadless=true -Pgeneration -PlogTests -Pjdk14=/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/ --stacktrace'
191
- - task : CopyFiles@2
177
+ - task : PublishPipelineArtifact@1
192
178
inputs :
193
- contents : ' ui/build/installer/* '
194
- targetFolder : $(Build.ArtifactStagingDirectory)
179
+ targetPath : ' ui/build/installer'
180
+ artifactName : ' MacInstaller '
195
181
196
182
- script : |
197
183
curl -s https://codecov.io/bash > .codecov
198
184
chmod +x .codecov
199
185
./.codecov -t $(CODECOV_TOKEN)
200
186
displayName: 'Upload jacoco reports to codecov'
201
187
202
- - task : Gradle@2
203
- inputs :
204
- workingDirectory : ' '
205
- gradleWrapperFile : ' gradlew'
206
- gradleOptions : ' -Xmx3072m'
207
- jdkVersionOption : ' 1.11'
208
- jdkArchitectureOption : ' x64'
209
- publishJUnitResults : false
210
- tasks : ' :ui:jpackage -Pcuda -Pjdk14=/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/ --stacktrace'
211
-
212
- - task : CopyFiles@2
213
- inputs :
214
- contents : ' ui/build/installer/*'
215
- targetFolder : $(Build.ArtifactStagingDirectory)
216
-
217
- - task : PublishBuildArtifacts@1
218
- inputs :
219
- artifactName : ' MacInstaller'
220
-
221
- - stage : Publish
222
- jobs :
223
- - job : UploadGitHubRelease
224
-
225
- pool :
226
- vmImage : ' Ubuntu 16.04'
227
-
228
- condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/v')
229
- steps :
230
- - task : DownloadPipelineArtifact@2
231
- displayName : Download artifacts
232
- inputs :
233
- path : $(Build.ArtifactStagingDirectory)
234
-
235
- - task : GitHubRelease@0
236
- displayName : Create GitHub Release
237
- inputs :
238
- gitHubConnection : ' GRIP GitHub Connection'
239
- repositoryName : $(Build.Repository.Name)
240
- action : edit
241
- target : $(Build.SourceVersion)
242
- tagSource : auto
243
- tag : $(Build.SourceBranchName)
244
- assetUploadMode : ' replace'
245
- isDraft : true
246
- addChangeLog : true
188
+ - ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }} :
189
+ - stage : Publish
190
+ jobs :
191
+ - job : UploadGitHubRelease
192
+
193
+ pool :
194
+ vmImage : ' Ubuntu 16.04'
195
+
196
+ steps :
197
+ - task : DownloadPipelineArtifact@2
198
+ displayName : Download artifacts
199
+ inputs :
200
+ path : $(Build.ArtifactStagingDirectory)
201
+
202
+ - task : GitHubRelease@0
203
+ displayName : Create GitHub Release
204
+ inputs :
205
+ gitHubConnection : ' GRIP GitHub Connection'
206
+ repositoryName : $(Build.Repository.Name)
207
+ action : edit
208
+ target : $(Build.SourceVersion)
209
+ tagSource : auto
210
+ tag : $(Build.SourceBranchName)
211
+ assetUploadMode : ' replace'
212
+ isDraft : true
213
+ addChangeLog : true
0 commit comments