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

error: Could not find a part of the path '/opt/atlassian/pipelines/agent/build/nupkgs'

I have a pipeline which packes code with nuget.config and push nexus repository. I didnt make any changes and it gaves me this error error: Could not find a part of the path '/opt/atlassian/pipelines/agent/build/nupkgs', but it was working fine before. Could anyone have an idea,why this hapening? You could see my pipeline below,thank you.
image: mcr.microsoft.com/dotnet/core/sdk:3.1
definitions:
steps:
- step: &nuget-pack-and-deploy
name: Nuget Pack
script:
- export VERSION="4.1.${BITBUCKET_BUILD_NUMBER}" && echo $VERSION
- dotnet pack code.sln --configuration Release --configfile ./NuGet.Config -o nupkgs -p:PackageVersion=${VERSION} && ls -lR
- dotnet nuget push /opt/atlassian/pipelines/agent/build/nupkgs/code.${VERSION}.nupkg -k xxxxxxx -s https://nexusrepo.com/repository/nuget-hosted/
pipelines:
custom:
custom-deploy:
- step: *nuget-pack-and-deploy

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 04, 2023

Hi Aysu,

Is it the dotnet nuget push command that gives you this error? I see that right before this command, there is an ls -lR. Does the output of this command show the directory and file you are trying to push?

I would also suggest checking the troubleshooting steps in this guide, section "Scenario 1: Builds were successful earlier, but started failing recently":

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events