Question

via azure devops pipeline stage, I'm, successfully, retrieving the build artifact I wanna deploy, but when referenced on the app add command, is not found.

    - task: DownloadBuildArtifacts@0
      displayName: Download SharePoint package (*.sppkg)
      inputs:
        buildType: current
        downloadPath: $(System.ArtifactsDirectory)
        downloadType: specific

Run Result:

Downloaded Folder/SubFolder/solution-name.sppkg to d:\a\1\a\Folder\SubFolder\solution-name.sppkg

Successfully downloaded artifacts to d:\a\1\a

- script: o365 spo app add --filePath "$(System.ArtifactsDirectory)\Folder\Subfolder\solution-name.sppkg" --appCatalogUrl ${{ parameters.o365_app_catalog_site_url }} --scope ${{ parameters.o365cli_app_catalog_scope }} --overwrite
  displayName: Upload SharePoint package to Site Collection App Catalog

Run Result:

Script contents: o365 spo app add --filePath "d:\a\1\a\Folder\SubFolder\solution-name.sppkg" --appCatalogUrl URL --scope sitecollection --overwrite

File 'd:\a\1\a\Folder\SubFolder\solution-name.sppkg' not found

Error: 404 FILE NOT FOUND

##[error]Cmd.exe exited with code '1'.

Any clue why it cannot be found?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top