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

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

Aysu Saglam October 3, 2023
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.
October 4, 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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events