The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events