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

Dotnet Pack Artifacts not being created.

Kevin Petteys January 12, 2023

I am following these instructions for using artifacts from one step to another, but I am not seeing my artifact either in the creator or consumer step.

 

definitions:
steps:
- step: &dotnet-test
name: test
script:
- dotnet restore test/$SOLUTION_NAME.test.csproj
- dotnet test test/$SOLUTION_NAME.test.csproj --no-restore
- step: &nuget-dev-pack
name: Nuget Pack
script:
- dotnet pack src/$SOLUTION_NAME.csproj --configuration release --version-suffix rc.1
artifacts:
- /opt/atlassian/pipelines/agent/build/src/bin/release/*.nupkg
#Pushes all .nupkg files to the artifact server
- step: &nuget-publish
name: Nuget Publish
script:
- dotnet nuget push release/*.nupkg -k $ARTIFACTORY_NUGET_APIKEY
pipelines:
branches:
'feature/**':
- step: *dotnet-test
- step: *nuget-pack
- step: *nuget-publish
clone:
depth: full

 

1 answer

1 accepted

0 votes
Answer accepted
Kevin Petteys January 12, 2023

changing the artifact path to 

artifacts: 
- src\bin\release\*.nupkg

resolved the issue. 

Kevin Petteys January 12, 2023

I also took of the 

rc.1

because it Interfered with the matching pattern 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events