OctoPack not publishing Artifacts using TeamCity Plugin

I have been trying to get a TeamCity (9.1.2) build using the Octopus Deploy integration Plugin (2.6.3.37). I have modeled the build after a working personal build server using only slightly older versions that currently works. However in the versions listed above I never see any artifacts of the build show up as they do in the personal server. I have selected “Run OctoPack” and the build succeeds as expected but I cannot seem to get the actual packages to be produced.

I had not added the nodes in my project file, I had thought this was supposed to be automatically added, but I guess I was wrong. Any chance this can get added to the install PS1

Hi,

Thanks for reaching out. Those lines should have been added during the Octopack installation. To double check this is working, I’ve installed Octopack 3.0.43 on a brand new project and compared the after/before csproj files (see attached screenshot)

Any chance you might have accidentally excluded those changes when pushing your code to source control?

Thanks,

Dalmiro

Once I realized what was wrong I tried to uninstall and reinstall without
any luck, as I expected that the powershell scripts that ran would add the
nodes to the csproj but did not see them getting added. Any idea what
could cause this behavior?

Thanks!

MITCH FERRER
Software Architect
WIND Platform

E-mail: meferrer@us.ibm.com IBM
Chat:Sametime: meferrer
Find me on: Github: https://github.com/G3N7
Github: https://github.ibm.com/meferrer

From: Dalmiro Grañas tender2+de9df7093a@tenderapp.com
To: Mitchell E Ferrer/Boulder/IBM@IBMUS
Date: 09/23/2015 03:56 PM
Subject: Re: OctoPack not publishing Artifacts using TeamCity Plugin
[Problems #39325]

graycol.gif

2E185198.gif

2E955412.jpg

2E576875.jpg

Hi Mitch,

Just following-up on your question for Dalmiro. I tried reproducing the issue by adding Octopack, reverting the changes to the csproj file and then uninstalling-reinstalling the package but it still added the new nodes successfully. I would suggest adding the lines below manually to get up and running but I can’t explain why it wouldn’t work for you.

  <Import Project="..\packages\OctoPack.3.0.43\tools\OctoPack.targets" Condition="Exists('..\packages\OctoPack.3.0.43\tools\OctoPack.targets')" />
  <Target Name="EnsureOctoPackImported" BeforeTargets="BeforeBuild" Condition="'$(OctoPackImported)' == ''">
    <Error Condition="!Exists('..\packages\OctoPack.3.0.43\tools\OctoPack.targets') And ('$(RunOctoPack)' != '' And $(RunOctoPack))" Text="You are trying to build with OctoPack, but the NuGet targets file that OctoPack depends on is not available on this computer. This is probably because the OctoPack package has not been committed to source control, or NuGet Package Restore is not enabled. Please enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
    <Error Condition="Exists('..\packages\OctoPack.3.0.43\tools\OctoPack.targets') And ('$(RunOctoPack)' != '' And $(RunOctoPack))" Text="OctoPack cannot be run because NuGet packages were restored prior to the build running, and the targets file was unavailable when the build started. Please build the project again to include these packages in the build. You may also need to make sure that your build server does not delete packages prior to each build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
  </Target>

Can you tell me what version of Visual Studio you’re using? Is this a new project/solution or an older one?

Let me know how you go.

Rob

I am using Visual Studio 2015, the project was created in Visual Studio
2013

I have since added the lines you mention, after realizing that was the
problem and my issue appears to be resolved. I am certain it was user
error in some way since I have been able to create a new project and have
it work as expected.

Thank you all for your time and amazing product. I hope we end up adopting
it after the trial. We are also heartened by your growing interest/support
for docker and love that you are being open about concerns and approaches.
Keep up the great work over there!

Thanks!

MITCH FERRER
Software Architect
WIND Platform

E-mail: meferrer@us.ibm.com IBM
Chat:Sametime: meferrer
Find me on: Github:
https://github.com/G3N7 Github:
https://github.ibm.com/meferrer

From: Rob Pearson tender2+de9df7093a@tenderapp.com
To: Mitchell E Ferrer/Boulder/IBM@IBMUS
Date: 09/27/2015 09:01 PM
Subject: Re: OctoPack not publishing Artifacts using TeamCity Plugin
[Problems #39325]

graycol.gif

2E185198.gif

2E955412.jpg

2E576875.jpg