I'm trying to setup automatic builds when code is pushed to BitBucket. However, I'm having trouble getting the plugins to build and output to the correct folder structure.
Sorry for the late reply, but I have been on vacation. :)
Below is the current .yml script, it includes some test code for trying to figure out where things are located etc.
I also tried to build the plugins separately, but I can't get it to work, this is the first time I've been trying to set builds using .yml files, so any help would be apreciated.
Best regards, Peter
# 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.
# To run your pipeline on a Windows machine, create a self-hosted Windows runner. # For instructions on setting up a Windows runner, see https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/
image: mcr.microsoft.com/dotnet/core/sdk:2.2
pipelines: default: - step: name: Build and Test caches: - dotnetcore script: - REPORTS_PATH=./test-reports/build_${BITBUCKET_BUILD_NUMBER} - dotnet restore ./src/NopCommerce.sln - dotnet build ./src/NopCommerce.sln --no-restore --configuration Release - ls -l /opt/atlassian/pipelines/agent/build/src/Presentation/Nop.Web/Plugins/Misc.AzureBlobSync/ - step: name: Publish caches: - node - dotnetcore #trigger: manual # Uncomment to make this a manual deployment. script: - apt-get update - apt-get install zip -y #- dotnet restore ./src/NopCommerce.sln - dotnet publish ./src/Presentation/Nop.Web/Nop.Web.csproj --configuration release --output ./publish #- dotnet publish --configuration release --no-restore ./src/Presentation/Nop.Web/Nop.Web.csproj -o ./publish #- dotnet publish --configuration release --no-restore ./src/Plugins/Nop.Plugin.Payments.Ariba/Nop.Plugin.Payments.Ariba.csproj #- dotnet publish --configuration release --no-restore ./src/Plugins/Nop.Plugin.Payments.Hansa/Nop.Plugin.Payments.Hansa.csproj #- ls -l ./src/Presentation/Nop.Web/Plugins/Payments.Ariba #- ls -l ./src/Presentation/Nop.Web/Plugins/Payments.Hansa #- rm ./src/Presentation/Nop.Web/publish/Plugins/Payments.Hansa/plugin.json - zip -r nopCommerce_${BITBUCKET_BUILD_NUMBER}.zip ./src/Presentation/Nop.Web/publish - ls -l - ls -l ./src - ls -l /opt/atlassian/pipelines/agent/build/src/Presentation/Nop.Web/publish/ artifacts: - nopCommerce_*.zip