Here is my .yml file
# Template .NET Core build
# This template allows you to validate your .NET Core package.
# The workflow allows running tests and code linting on the default branch.
image: mcr.microsoft.com/dotnet/core/sdk:3.1
pipelines:
default:
- parallel:
- step:
name: Build and Test
caches:
- dotnetcore
script:
- REPORTS_PATH=./test-reports/build_${BITBUCKET_BUILD_NUMBER}
- dotnet restore
- dotnet build --no-restore --configuration Release
- dotnet test --no-build --configuration Release --test-adapter-path:. --logger:"junit;LogFilePath=$REPORTS_PATH/junit.xml"
- step:
name: Lint the code
deployment: TEST
caches:
- dotnetcore
script:
- export SOLUTION_NAME=TestBitbucket
- export REPORTS_PATH=linter-reports
- dotnet new tool-manifest
- pipe: atlassian/azure-web-apps-deploy:1.0.1
variables:
AZURE_APP_ID: '368eedc8-dbd1-4b70-9f31-6652c3be38e3'
AZURE_PASSWORD: '9Sew_ewLWl39v4cQRG5Ijrp8Nix_0b5.O4'
AZURE_TENANT_ID: '87f0db61-c599-42d5-8aca-6f1b14dc594e'
AZURE_RESOURCE_GROUP: 'BitbucketApp'
AZURE_APP_NAME: 'Bitbucketwapp'
ZIP_FILE: 'TestBitbucket.7z'
artifacts:
- linter-reports/**