Open Closed

Bitbucket RUNNER build error #6913


User avatar
0
guven.uysall created
  • ABP Framework version: v6.0.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

I have a microservice project. I am trying to run CI/CD processes with Bitbucket runner. When the push operation is made to the relevant branch, the runner starts, downloads the project to the server, and there is only the dotnet build command in the yaml file. After a while, the command gives the following error. Could not copy the file "obj\Debug\netstandard2.0\AppPool.AdministrationService.Domain.Shared.dll" But when I try to compile the same project on Powershell or Visual Studio, it compiles perfectly. What could be the reason for the error with Runner?

image: mcr.microsoft.com/dotnet/core/sdk:6.0
pipelines:
  branches:
    Deploy_Server_Test:
      - step:
          name: "BUILD DB MIGRATOR"
          runs-on:
            - self.hosted
            - windows
            - local
          script:
            - dotnet restore
            - dotnet build


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Please check this answer given by EngincanV https://support.abp.io/qa/questions/2116/310c3140-7424-d7ab-eeea-3a003ed02853.

    Thank you.

  • User Avatar
    0
    guven.uysall created

    Hi, I don't understand. I tried everything. When I compile the project with Visual Studio or Powershell, I can get the build, but when I download the project to the server and try to compile it with Bitbucket Runner, it gives an error.

    Could not copy the file "obj\Debug\netstandard2.0\AppPool.AdministrationService.Domain.Shared.dll"

    Is it possible to compile your trial project with bitbucket runner?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Our project is just a net core app. You can build it locally, which means it is no problem.

    Is it possible to compile your trial project with bitbucket runner?

    You can try following:

    1. use dotnet build /graphBuild to replace dotnet build command.
    2. build a plain asp net core web app in your runner to ensure the environment is fine.
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11