Lab - Azure Pipelines - Using Selenium You can use the following information as a reference for the previous chapter. 1. You can go ahead ...
Lab - Azure Pipelines - Using Selenium
You can use the following information as a reference for the previous chapter.
1. You can go ahead and download the .Net project as a reference. This is added as a resource to the chapter as a zip file
2. You can use the following YAML file for your build pipeline as a reference
- # ASP.NET Core (.NET Framework)
- # Build and test ASP.NET Core projects targeting the full .NET Framework.
- # Add steps that publish symbols, save build artifacts, and more:
- # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
- trigger:
- - master
- pool:
- vmImage: 'windows-latest'
- steps:
- - task: DotNetCoreCLI@2
- displayName: Restore
- inputs:
- command: restore
- projects: '**/seleniumtest.csproj'
- - task: DotNetCoreCLI@2
- displayName: Publish
- inputs:
- command: publish
- publishWebProjects: false
- projects: '**/seleniumtest.csproj'
- arguments: '--configuration Release -o $(build.artifactstagingdirectory)'
- zipAfterPublish: false
- modifyOutputPath: false
- - task: PublishBuildArtifacts@1
- displayName: 'Publish Artifact'
- inputs:
- PathtoPublish: '$(build.artifactstagingdirectory)'
COMMENTS