Release definition to publish nuget packages for multiple artifacts

Anders Jönsson

I have a VSTS release definition that I want to use for publishing nuget packages for multiple artifacts. The artifacts for the different nuget packages are supplied to the release definition from different build definitions. Only artifacts from the build that triggered the release shall be downloaded and published. The pipeline is setup according to the picture below.

Release definition

That is, when a build triggers a new release, only artifacts from that build should be published in the release. All artifacts from the other build definitions should be ignored since the version number on those nuget packages are not updated and will fail to push.

Can this be accomplished?

Rodrigo Werlang

Take a look at this link https://docs.microsoft.com/en-us/vsts/release-notes/2018/mar-05-vsts#improve-release-times-by-partially-downloading-artifacts

And then on that same link see Deploy selectively based on the artifact triggering a release

It will basically explain VSTS new features. The first one is to specify what you want to download on a release phase. The second one is to add a custom condition on a phase to define if it should be executed.

So you could create two phases, one for each of your artifacts. Each phase would only download the corresponding artifact and only run if the custom conditional evaluates true, using the new release variable Release.TriggeringArtifact.Alias.

Note that this release variable is only present if the release is continuous deployment.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to use artifactoryPublish to publish release and debug artifacts

Publish .snupkg to Azure DevOps artifacts nuget feed

Multiple Repos in Release definition

Non-proprietary Nuget Packages Showing in Nuget Server/Artifacts Feed

How to publish Travis CI artifacts to GitHub Release from several jobs

How to publish beta nuget packages out of AppVeyor

How can I deploy a release with multiple artifacts

Debug and release nuget packages local repository

Release nuget packages that have reference to other assemblies

Why are there Microsoft packages in my private Nuget Feed in DevOps Artifacts?

Can I upload existing NuGet packages to an Azure DevOps artifacts feed?

Install multiple NuGet packages at once

Gradle Artifactory Plugin - How to publish artifacts from multiple modules in a project?

Publish kotlin multiplatform library to Maven Central (InvalidMavenPublicationException multiple artifacts with the identical ...)

How to publish and download artifacts from multiple jobs into one location on pipeline?

Create and Publish nuget packages from TFS build process?

gcc Multiple definition...release only

VSTS - Azure DevOps: AppSettings transformations during the release, or multiple artifacts

Installing multiple nuget packages by manually editing the packages.config

Nuget restore returns 401 unauthorized during Jenkins build for packages in Azure DevOps artifacts feed

Some packages can't be downloaded from Azure DevOps Artifacts feed with NuGet upstream source

Poetry: How to publish project packages targeting multiple Python versions?

publish artifacts to scp repository if success

Publish Artifacts for website goes to PrecompiledWeb

Substituting multiple variables in a list using a VSTS Release Definition

VSTS Build Definition : adding multiple feeds in Nuget restore task

How to publish my C# project using OpenCV Nuget packages in Visual Studio?

How can I publish and access nuget packages within Visual Studio Team Services

How to deploy single artifacts to multiple web app in Dev-ops Release Pipeline

TOP Ranking

HotTag

Archive