Using Artifactory with Octopus Deploy?

Hi,

I am trying to figure out a way where Octopus Deploy will pick up the nuget packages from Artifactory. Does anyone know if this is possible?

Thanks

Hi Kevin,

Thanks for reaching out. The Octopus model works by downloading packages from nuget feeds. If you can pass Octopus a URL of a Nuget feed, odds are it will work. Artifactory supports Nuget feeds since version 2.5, and we’ve seen users using it. There is nothing special to do on the Octopus side, other than adding the Nuget feed URL to your external feeds. You might need though to do some configurations on the Artifactory side to enable Nuget Feeds (quick google search gave me this http://www.jfrog.com/confluence/display/RTF/NuGet+Repositories )

Hope that helps!

Dalmiro

Hi,

How can i authenticate from Octopus when trying to get packages from an Artifactory Feed? I have setup some permissions for a few types of users in Artifactory and i do not allow anonymous connection to the feed.

Thanks,
Valy

Hi Valy,

Thanks for reaching out. When you create/edit an external feed from Library -> External feeds there are Username and Password fields for this.

This screenshot shows the fields for Octopus 2.6, but it also applies for 3.X: http://docs.octopusdeploy.com/download/attachments/3048042/2014-05-09%2016_00_13-New%20Feed%20-%20Octopus%20Deploy.png?version=1&modificationDate=1399615250678&api=v2

Hope that helps,

Dalmiro

Hi,

Actually, i have defined the feed there.
My problem is a bit different. I don’t use this predefined feed, by choosing it from the drop down of the nuget deploy step. Instead, i use a binding like this #{ArtifactoryServer}#{artifactoryFeed}.
I have seen an error in the logs that this feed, which is resolved correctly by the bindings above, as shown in logs, is not present/found. I was thinking that when i use binding like that it does not know how to work with the feed. I tried also to allow anonymous access to the feed and still no luck. Once i removed then binding for the feed and chose one from the drop down(identical URL) it worked.

Hi,

Your variable binding should resolve to the ID of the Nuget feed you want to use. Something like this:

  1. Lets say I have an Octopus external feed called TestFeed which points to my Artifactory feed. See 1.feed.jpg

  2. The variable value needs to be the feed ID for this to work. In this case the feed ID is feeds-testfeed:

variable name variable value
MyFeed feeds-testfeed
  1. Then on the deploy step, I put the variable as a custom expression on the Nuget feed field. See 2.NugetField.jpg

Let me know how it goes,

Dalmiro