steps: ## This is needed due to https://github.com/microsoft/azure-pipelines-tasks/issues/8429 ## For the set version tool... - task: DotNetCoreInstaller@1 displayName: 'Use .NET Core sdk ' inputs: packageType: 'sdk' version: '3.x' - task: DotNetCoreInstaller@1 displayName: 'Use .NET Core sdk for versioning' inputs: packageType: 'sdk' version: '2.1.x' - task: PowerShell@2 displayName: 'Get Release Notes' inputs: targetType: 'inline' script: | $response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)" Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response" - task: PowerShell@2 displayName: 'Set Version' inputs: targetType: 'inline' script: | dotnet tool install -g dotnet-setversion setversion -r $(BuildVersion) - task: Yarn@3 displayName: 'Install UI Dependancies' inputs: projectDirectory: '$(UiLocation)' arguments: 'install' - task: Yarn@3 displayName: 'Build and Publish Angular App' inputs: projectDirectory: '$(UiLocation)' arguments: 'run build' - task: PublishPipelineArtifact@1 inputs: targetPath: '$(UiLocation)dist' artifact: 'angular_dist' publishLocation: 'pipeline' - task: DotNetCoreCLI@2 displayName: Run Unit Tests inputs: comand: 'test' projects: '$(TestProject)' continueOnError: true