Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,963
Community Members
 
Community Events
176
Community Groups

Bitbucket Pipeline Unexpectedly Errors

I got a net solution that I can run/build/test locally.

I can also run/build/test inside a docker container no problem.

In my setup I have the following folder Structure


/root

   /Backend

        /Backend

             Backend.csproj

        /Tests

             Tests.csproj
/Lib


<Reference Include="DataExtensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\Lib\DataExtensions.dll</HintPath>
</Reference>

Locally it all works. It also works in other Pipelines, but in Bitbucket pipeline, for some reason, it fails to find the required dependency. I validated its there in the repo.

Here's the full test log:

Build setup23s
REPORTS_PATH=./test-reports/build_${BITBUCKET_BUILD_NUMBER}



cd Backend <1s



cd Lib <1s



ls <1s



+ ls
DataExtensions.dll



cd .. <1s



cd Tests <1s



+ cd Tests



cat Tests.csproj<1s



+ cat Tests.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
<PackageReference Include="coverlet.collector" Version="3.1.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="DataExtensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\Lib\DataExtensions.dll</HintPath>
</Reference>
</ItemGroup>
</Project>



dotnet test4s
+ dotnet test

Determining projects to restore...

Restored /opt/atlassian/pipelines/agent/build/Backend/Tests/Tests.csproj (in 1.52 sec).

/usr/share/dotnet/sdk/6.0.201/Microsoft.Common.CurrentVersion.targets(2301,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DataExtensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/opt/atlassian/pipelines/agent/build/Backend/Tests/Tests.csproj]

1 answer

1 accepted

0 votes
Answer accepted

Problem was that in Bitbucket LFS is off by default.

Turning it back on solved the issue.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events