简体   繁体   中英

Publish a specific TeamCity artifact to NuGet

I have set up a local NuGet gallery and want to publish my build artifacts to it. Rather than publishing every single build artifact to the Nuget gallery each time there is a build, I want to be able to publish a specific version of the artifact manually when I am satisfied that it is a stable version.

Is there a way to do that in TeamCity?

One fairly simple option is to create a build chain, with a Package build having a snapshot dependency on the CI build:

CI Build -> Package Build

That way you can manually trigger the Package build once you're ready. You'll need to move your Pack / Publish build steps in to the Package build of course.

You can target specific change-sets as well if you're not looking to publish the 'latest' build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM