Nuget Publish issue

Hi

I'm having an issue with publishing a nuget package to the teamcity nuget server before the build is done. I have configured it as described in this link http://confluence.jetbrains.com/display/TCD8/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-PublishingArtifactswhiletheBuildisStillinProgress. I have used a commandline task to send the service message.  The build log suggest that it is setup correctly.

[14:49:29][Step 2/6] Publishing artifacts
[14:49:29][Publishing artifacts] Collecting files to publish: [C:\TeamCity\buildAgent\work\3158deee23a0f008\build\packages\yyy.1.19.nupkg => ., C:\TeamCity\buildAgent\work\3158deee23a0f008\build\packages\yyy.1.19.symbols.nupkg => .]
[14:49:29][Publishing artifacts] Sending build/packages/yyy.1.19.nupkg
[14:49:30]Step 3/6: Copy of sleep (Powershell)
[14:49:30][Step 3/6] Disabled build step Copy of sleep (Powershell) is skipped
[14:49:30]Step 4/6: publish (Command Line)
[14:49:30][Step 4/6] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script2355557460447347269.cmd
[14:49:30][Step 4/6] in directory: C:\TeamCity\buildAgent\work\3158deee23a0f008
[14:49:30][Step 4/6] ##teamcity[publishArtifacts 'build\packages']
[14:49:30][Step 4/6] Publishing artifacts
[14:49:30][Publishing artifacts] Collecting files to publish: [build\packages]
[14:49:30][Publishing artifacts] Sending build/packages
[14:49:30][Step 4/6] Process exited with code 0
[14:49:30]Step 5/6: sleep (Powershell)
[14:49:30][Step 5/6] Starting: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy ByPass -Command - < C:\TeamCity\buildAgent\temp\buildTmp\powershell4750130771266707908.ps1
[14:49:30][Step 5/6] in directory: C:\TeamCity\buildAgent\work\3158deee23a0f008
[14:49:41][Step 5/6] Process exited with code 0
[14:49:41]Step 6/6: Copy of octopus (OctopusDeploy: Release)
[14:49:41][Step 6/6] Octopus Deploy
[14:49:41][Octopus Deploy] Running command: octo.exe create-release --server xxx --apikey SECRET --project yyy --enableservicemessages --version 1.19 --deployto zzz-Test --waitfordeployment --packageversion=1.19
[14:49:41][Octopus Deploy] Creating Octopus Deploy release
[14:49:42][Octopus Deploy] Octopus Deploy Command Line Tool, version 2.0.1.13
[14:49:42][Octopus Deploy]
[14:49:42][Octopus Deploy] Handshaking with Octopus server: xxx
[14:49:45][Octopus Deploy] Handshake successful. Octopus version: 2.0.13.1100; API version: 3.0.0
[14:49:45][Octopus Deploy] Finding project: yyy
[14:49:45][Octopus Deploy] Finding deployment process for project: yyy
[14:49:45][Octopus Deploy] Finding release template...
[14:49:45][Octopus Deploy] Release plan for release: 1.19
[14:49:45][Octopus Deploy] Steps:
[14:49:45][Octopus Deploy] # Name Version Source
[14:49:45][Octopus Deploy] --- ---------------------- --------------- ------------------------------------
[14:49:45][Octopus Deploy] 1 Deploy from Teamcity 1.19 User specified
[14:49:45][Octopus Deploy]
[14:49:45][Octopus Deploy] Creating release...
[14:49:46][Octopus Deploy] Release 1.19 created successfully!
[14:49:46][Octopus Deploy] ##teamcity[setParameter name='octo.releaseNumber' value='1.19']
[14:49:47][Octopus Deploy] Deploying yyy 1.19 to: zzz-Test (Guided Failure: Not Enabled)
[14:49:47][Octopus Deploy] Waiting for 1 deployment(s) to complete....
[14:50:07][Octopus Deploy] Done!
[14:50:07][Octopus Deploy] Octo.exe exit code: 0
[14:50:07]Publishing internal artifacts
[14:50:07][Publishing internal artifacts] Sending build.finish.proper

I can see the following in nuget for the package Please look at the update/create time which doesn't match the time of step 2, but it matches the one for build finished

<entry>
  <id>http://dev-ci-1:8081/guestAuth/app/nuget/v1/FeedService.svc/Packages(Id=&apos;yyy&apos;,Version=&apos;1.19&apos;)</id>
  <title type="text">yyy</title>
  <summary type="text">The service solution for yyy customers</summary>
  <updated>2014-02-03T14:50:07Z</updated>
  <author>
    <name>zzz Mobile</name>
  </author>
  <link rel="edit" title="V2FeedPackage" href="Packages(Id=&apos;yyy&apos;,Version=&apos;1.19&apos;)"/>
  <category term="NuGetGallery.V2FeedPackage" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
  <content type="application/zip" src="http://dev-ci-1:8081/guestAuth/repository/download/yyy_Package/3788:id/yyy.1.19.nupkg"/>
  <m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
    <d:RequireLicenseAcceptance m:type="Edm.Boolean">false</d:RequireLicenseAcceptance>
    <d:ProjectUrl></d:ProjectUrl>
    <d:IsAbsoluteLatestVersion m:type="Edm.Boolean">true</d:IsAbsoluteLatestVersion>
    <d:PackageHashAlgorithm>SHA512</d:PackageHashAlgorithm>
    <d:Authors>zzz Mobile</d:Authors>
    <d:Created m:type="Edm.DateTime">2014-02-03T14:50:07.996</d:Created>
    <d:LicenseUrl></d:LicenseUrl>
    <d:Copyright></d:Copyright>
    <d:Version>1.19</d:Version>
    <d:ReportAbuseUrl></d:ReportAbuseUrl>
    <d:VersionDownloadCount m:type="Edm.Int32">42</d:VersionDownloadCount>
    <d:Description>The service solution for yyy customers</d:Description>
    <d:Published m:type="Edm.DateTime">2014-02-03T14:50:07.996</d:Published>
    <d:LastUpdated m:type="Edm.DateTime">2014-02-03T14:50:07.996</d:LastUpdated>

    <d:IsLatestVersion m:type="Edm.Boolean">true</d:IsLatestVersion>
    <d:IconUrl></d:IconUrl>
    <d:PackageHash>3KJLRDQLcqyoQbOIDbzucsiG857rKJJjj1s27U26WqPNOD1gwn/kpP2hn6XXnHyDnW0DL9luehrjKRclt9m/TA==</d:PackageHash>
    <d:Dependencies></d:Dependencies>
    <d:IsPrerelease m:type="Edm.Boolean">false</d:IsPrerelease>
    <d:Title>yyy</d:Title>
    <d:Summary>The service solution for yyy customers</d:Summary>
    <d:Tags></d:Tags>
    <d:GalleryDetailsUrl></d:GalleryDetailsUrl>
    <d:DownloadCount m:type="Edm.Int32">42</d:DownloadCount>
    <d:PackageSize m:type="Edm.Int64">8709972</d:PackageSize>
    <d:AtomEntityType>application/zip</d:AtomEntityType>
    <d:Language></d:Language>
    <d:Id>yyy</d:Id>
    <d:ReleaseNotes></d:ReleaseNotes>
    <d:MinClientVersion></d:MinClientVersion>
  </m:properties>
</entry>

Thanks in advance for any help

Please sign in to leave a comment.