File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 5151 command : ' pack'
5252 packagesToPack : ' **/Xunit.Microsoft.DependencyInjection.csproj'
5353 arguments : ' --configuration $(BuildConfiguration) /p:ContinuousIntegrationBuild=true /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageVersion=$(Major).$(Minor).$(Revision) --output $(Build.ArtifactStagingDirectory)/packages'
54- nobuild : true
54+ nobuild : false
5555- task : DotNetCoreCLI@2
5656 displayName : ' Running tests in example folder'
5757 continueOnError : true
@@ -79,8 +79,21 @@ steps:
7979
8080- script : echo Started packing and pushing
8181
82+ - script : |
83+ if [ -d "$(Build.ArtifactStagingDirectory)/packages" ]; then
84+ echo "Packages directory exists, found the following files:"
85+ ls -la "$(Build.ArtifactStagingDirectory)/packages/"
86+ else
87+ echo "Packages directory does not exist at $(Build.ArtifactStagingDirectory)/packages"
88+ echo "Contents of staging directory:"
89+ ls -la "$(Build.ArtifactStagingDirectory)/"
90+ exit 1
91+ fi
92+ displayName : ' Verify Packages Directory'
93+
8294- task : PublishBuildArtifacts@1
8395 displayName : ' Publish Packages'
96+ condition : and(succeeded(), ne(variables['Agent.JobStatus'], 'Failed'))
8497 inputs :
8598 PathtoPublish : ' $(Build.ArtifactStagingDirectory)/packages'
8699 ArtifactName : ' packages'
You can’t perform that action at this time.
0 commit comments