Skip to content

Commit fc190e9

Browse files
authored
#18 Use nuget task to pack (#137)
* #18 Use nuget task to pack * #18 Use script instead of dotnetcli task to create package * #18 Disable sonar * #18 Change path to project for pack * #18 Fix path to project for pack * #18 Update path to project for pack * #18 Update path to pack project * #18 Remove output from pack script * #18 Add output to pack script * #18 Change build task to script * #18 Fix build script * #18 Change package version * #18 Update build command * #18 Fix pack command * #18 Enable tasks
1 parent 926e48e commit fc190e9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@ steps:
2525
extraProperties: |
2626
sonar.coverage.exclusions=**/**
2727
28-
- task: DotNetCoreCLI@2
28+
- script: dotnet build Aquality.Selenium/Aquality.Selenium.sln -c $(buildConfiguration)
2929
displayName: 'Build solution - $(buildConfiguration)'
30-
inputs:
31-
command: 'build'
32-
projects: Aquality.Selenium/Aquality.Selenium.sln
33-
arguments: -c $(buildConfiguration) /p:Version=$(GitVersion.NuGetVersion)
3430

3531
- task: SonarCloudAnalyze@1
3632
displayName: 'Run SonarCloud code analysis'
@@ -48,12 +44,8 @@ steps:
4844
arguments: -c $(buildConfiguration) --no-build
4945
publishTestResults: true
5046

51-
- task: DotNetCoreCLI@2
47+
- script: dotnet pack Aquality.Selenium\src\Aquality.Selenium\Aquality.Selenium.csproj -c $(buildConfiguration) --no-build -p:Version=$(GitVersion.NuGetVersion) -o $(Build.ArtifactStagingDirectory)
5248
displayName: 'Create NuGet package'
53-
inputs:
54-
command: 'pack'
55-
projects: Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj
56-
arguments: -c $(buildConfiguration) -o $(Build.ArtifactStagingDirectory) /p:Version=$(GitVersion.NuGetVersion)
5749
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
5850

5951
- task: NuGetCommand@2

0 commit comments

Comments
 (0)