Hi,
I am trying to publish an .exe file in the DevOps feed using the UniversalPackages@0 task, but I get this error message:
[error]Error: An unexpected error occurred while trying to push the package. Exit code(19) and error({"@t":"2021-10-27T15:54:08.7650704Z","@m":"ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 21682131-2168-4132-b129-fc517d13c0dc","@i":"20f6b3c6","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:08.765Z"}
Questo il log completo:
Starting: Universal Publish
==============================================================================
Task : Universal packages
Description : Download or publish Universal Packages
Version : 0.190.0
Author : Microsoft Corporation
Help : https://learn.microsoft.com/azure/devops/pipelines/tasks
==============================================================================
SYSTEMVSSCONNECTION exists true
Downloading: <xxxxxxxxxxxxxxxxxx>
Caching tool: ArtifactTool 0.2.198 x64
SYSTEMVSSCONNECTION exists true
[warning]Could not create provenance session: %s
[warning]The feed with ID 'ea46c575-3bb2-4b62-9c4d-900655d3ef93' doesn't exist.
Publishing package: dist, version: 1.0.0 using feed id: ea46c575-3bb2-4b62-9c4d-900655d3ef93, project: <project-name>
/opt/hostedtoolcache/ArtifactTool/0.2.198/x64/artifacttool universal publish --feed ea46c575-3bb2-4b62-9c4d-900655d3ef93 --service https://dev.azure.com/\<organization-name>/ --package-name dist --package-version 1.0.0 --path /home/vsts/work/1/s/<path>/dist --patvar UNIVERSAL_PUBLISH_PAT --verbosity None --description <description> --project <project-name>
{"@t":"2021-10-27T15:54:08.7650704Z","@m":"ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 21682131-2168-4132-b129-fc517d13c0dc","@i":"20f6b3c6","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:08.765Z"}
{"@t":"2021-10-27T15:54:09.0617328Z","@m":"Ensuring that the package does not yet exist...","@i":"40e01e14","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:09.061Z"}
{"@t":"2021-10-27T15:54:09.2152600Z","@m":"ApplicationInsightsTelemetrySender did not correlate any events with X-TFS-Session 21682131-2168-4132-b129-fc517d13c0dc","@i":"5d17a572","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:09.215Z"}
{"@t":"2021-10-27T15:54:09.2163448Z","@m":"The feed with ID 'ea46c575-3bb2-4b62-9c4d-900655d3ef93' doesn't exist.","@i":"c2bc42a5","@l":"Error","SourceContext":"ArtifactTool.Program","UtcTimestamp":"2021-10-27 15:54:09.216Z"}
[error]Error: An unexpected error occurred while trying to push the package. Exit code(19) and error({"@t":"2021-10-27T15:54:08.7650704Z","@m":"ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 21682131-2168-4132-b129-fc517d13c0dc","@i":"20f6b3c6","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:08.765Z"}
{"@t":"2021-10-27T15:54:09.0617328Z","@m":"Ensuring that the package does not yet exist...","@i":"40e01e14","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:09.061Z"}
{"@t":"2021-10-27T15:54:09.2152600Z","@m":"ApplicationInsightsTelemetrySender did not correlate any events with X-TFS-Session 21682131-2168-4132-b129-fc517d13c0dc","@i":"5d17a572","SourceContext":"ArtifactTool.Commands.UPackPublishCommand","UtcTimestamp":"2021-10-27 15:54:09.215Z"}
{"@t":"2021-10-27T15:54:09.2163448Z","@m":"The feed with ID 'ea46c575-3bb2-4b62-9c4d-900655d3ef93' doesn't exist.","@i":"c2bc42a5","@l":"Error","SourceContext":"ArtifactTool.Program","UtcTimestamp":"2021-10-27 15:54:09.216Z"})
[error]Packages failed to publish
Finishing: Universal Publish
Questo codice del task nella pipeline:
- task: UniversalPackages@0
displayName: Universal Publish
inputs:
command: publish
publishDirectory: '$(packageRoot)/dist'
vstsFeedPublish: '$(projectName)/$(artifactFeedGUID)'
vstsFeedPackagePublish: $(artifactName)
versionOption: custom
versionPublish: '1.0.0'
packagePublishDescription: <description>
I can't understand what the error could be due to, it's not very explanatory.
Thanks,
G