@@ -12,19 +12,19 @@ stages:
12
12
13
13
jobs :
14
14
- job : sonar
15
- displayName : Analyse code with SonarQube
15
+ displayName : Analyze code with SonarQube
16
16
17
17
steps :
18
- - task : SonarCloudPrepare@1
18
+ - task : SonarCloudPrepare@3
19
19
displayName : ' Prepare SonarCloud analysis'
20
20
inputs :
21
- SonarCloud : ' SonarCloud'
21
+ SonarQube : ' SonarCloud'
22
22
organization : ' aqualityautomation'
23
+ scannerMode : ' dotnet'
23
24
projectKey : ' aquality-automation_aquality-appium-mobile-dotnet'
24
25
projectName : ' aquality-appium-mobile-dotnet'
25
26
projectVersion : ' $(Build.BuildNumber)'
26
- extraProperties : |
27
- sonar.coverage.exclusions=**/**
27
+ extraProperties : ' sonar.coverage.exclusions=**/**'
28
28
29
29
- task : UseDotNet@2
30
30
displayName : Use .NET 8.0
@@ -41,11 +41,15 @@ stages:
41
41
projects : Aquality.Appium.Mobile/Aquality.Appium.Mobile.sln
42
42
arguments : -c $(buildConfiguration)
43
43
44
- - task : SonarCloudAnalyze@1
44
+ - task : SonarCloudAnalyze@3
45
+ inputs :
46
+ jdkversion : ' JAVA_HOME_17_X64'
45
47
displayName : ' Run SonarCloud code analysis'
46
48
continueOnError : true
47
49
48
- - task : SonarCloudPublish@1
50
+ - task : SonarCloudPublish@3
51
+ inputs :
52
+ pollingTimeoutSec : ' 300'
49
53
displayName : ' Publish SonarCloud quality gate results'
50
54
51
55
- job : tests
@@ -184,17 +188,20 @@ stages:
184
188
185
189
- script : dotnet pack Aquality.Appium.Mobile/src/Aquality.Appium.Mobile/Aquality.Appium.Mobile.csproj -c $(buildConfiguration) -p:Version=$(GitVersion.NuGetVersion) -o $(Build.ArtifactStagingDirectory)
186
190
displayName : ' Create NuGet package'
187
-
188
- - task : GitHubRelease@0
191
+
192
+ - task : GitHubRelease@1
189
193
displayName : ' Create tag on GitHub'
190
194
inputs :
191
195
gitHubConnection : ' github.com_aqualityautomation'
192
196
repositoryName : ' aquality-automation/aquality-appium-mobile-dotnet'
193
197
action : ' create'
198
+ target : ' $(Build.SourceVersion)'
199
+ tagSource : ' userSpecifiedTag'
194
200
tag : ' v$(GitVersion.NuGetVersion)'
195
201
title : ' v$(GitVersion.NuGetVersion)'
196
- tagSource : ' manual'
197
202
isPreRelease : contains(variables['GitVersion.NuGetVersion'], '-')
203
+ changeLogCompareToRelease : ' lastFullRelease'
204
+ changeLogType : ' commitBased'
198
205
199
206
- task : NuGetCommand@2
200
207
displayName : ' Push NuGet package'
0 commit comments