Change nuget package feed on channel change

(Nikhil Agrawal) #1

Hi,

So we have couple of external feeds configured in Library -> External feeds and one of our project has a step to deploy package from external feed to server as windows service. The same project also has channels.

Is it possible to change nuget source (via some variable or someother mechanism) when we change channels? So say for alpha channel package will come from ‘A’ external feed and for beta channel package will come from ‘B’ external feed.

p.s. Package Id will remain same irrespective of feed.

(Daniel Fischer) #3

Hi @Nikhil_Agrawal,

Thanks for getting in touch! This is something you are able to do in Octopus. We have a documentation page with details on how you can configure this for your project.

Essentially, you can bind a variable to the feed in your package step, then scope the variable to your different Channels. This will let you automatically change feeds based on which Channel is used when creating the release.

Does this look like what you are after here?

If you have any questions at all or run into any issues with this please let me know. :slight_smile:

Best regards,
Daniel