Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

DevOps Fehler in Release aus Pipeline Error: No package found

15.12.2021 (👁6629)

Azure DevOps Fehler in Release aus Pipeline

 

Fehlermeldung:
Error: No package found with specified pattern: C:\vsts\agent3\_work\r378\a\**\*.zip<br/>Check if the package mentioned in the task is published as an artifact in the build or a previous stage and downloaded in the current job.

 

 

Lösung:
folgende Anweisung in das azure-pipeline.yml file kopieren

 

 

trigger:

master

 

pool:

  vmImage'windows-latest'

 

variables:

  solution'**/*.sln'

  buildPlatform'Any CPU'

  buildConfiguration'Release'

 

steps:

taskNuGetToolInstaller@1

 

taskNuGetCommand@2

  inputs:

    restoreSolution'$(solution)'

 

taskVSBuild@1

  inputs:

    solution'$(solution)'

    msbuildArgs'/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'

    platform'$(buildPlatform)'

    configuration'$(buildConfiguration)'

 

taskVSTest@2

  inputs:

    platform'$(buildPlatform)'

    configuration'$(buildConfiguration)'

taskPublishBuildArtifacts@1

 

 

 

Ein Bild, das Text enthält.

Automatisch generierte Beschreibung