NuGet publish - Cannot prompt for input in non-interactive mode.

Hi

I need help to figure out Nuget publish problem with a test project. The issue might be that it cannot prompt for input in non-interactive mode.

I am new to Octopus and TC so please be patient with me.  The following config has worked fine before so i am not sure what happened to it.

I cannot log in to OCTOPUS WEB PORTAL because i forgot my username and password and tried to add/modify using command line but i still cannot log in.

For Username/Password authentication

Octopus.Server.exe service --stop Octopus.Server.exe admin --username=YOURUSERNAME --password=YOURPASSWORD Octopus.Server.exe service --start

For Active Directory authentication

When Active Directory authentication is in use, the --password argument is not required:

Octopus.Server.exe service --stop
Octopus.Server.exe admin --username=YOURUSERNAME
Octopus.Server.exe service --start

My Build steps

 

Step 1

Step 2

Step 3

Package source URL screen print above displays a blank page in browser. http://build.....no:8080/httpAuth/app/nuget/v1/FeedService.svc

The old package source URL  value was http://build.....no:8080/nuget/packages that gives 404. I am not sure what is the correct URL to use.

http://build......no:8080/httpAuth/app/nuget/v1/FeedService.svc  displays the following xml.

<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xml:base="http://build.....no:8080/httpAuth/app/nuget/v1/FeedService.svc/">

<workspace>

<atom:title>Default</atom:title>

<collection href="Packages">

<atom:title>Packages</atom:title>

</collection>

</workspace>

</service>

 

API KEY is the master key from OCTOPUS

OCTOPUS

OTOCPUS TENTACLE

 

LOG

Build 'TestTCOctopus :: BuildTestTCOctopus' #13

Started 'Wed Sep 27 12:42:46 CEST 2017' on 'ebitcloud-ci01' by ali

Finished 'Wed Sep 27 12:42:52 CEST 2017' with status 'FAILURE Exit code 1'

TeamCity URL http://hotel.qunar.com/viewLog.html?buildId=3140&buildTypeId=TestTCOctopus_BuildTestTCOctopus

TeamCity server version is 9.0.1 (build 32116)

 

[12:42:44]i: TeamCity server version is 9.0.1 (build 32116)

[12:42:45]E: bt4 (7s)

[12:42:45] : Checking for changes (running for 7s)

[12:42:45] : Collecting changes in 1 VCS root (1s)

[12:42:45] :        [Collecting changes in 1 VCS root] VCS Root details

[12:42:45] :                      [VCS Root details] "https://....visualstudio.com/DefaultCollection/_git/Test#refs/heads/master" {instance id=4, parent internal id=2, parent id=TestTCOctopus_Https...VisualstudioComDefaultCollectionGitTestRefsHeadsMaster, description: "https://....visualstudio.com/DefaultCollection/_git/Test#refs/heads/master"}

[12:42:46]i:        [Collecting changes in 1 VCS root] Waiting for completion of current operations for the VCS root 'https://....visualstudio.com/DefaultCollection/_git/Test#refs/heads/master'

[12:42:46]i:        [Collecting changes in 1 VCS root] Detecting changes in VCS root 'https://....visualstudio.com/DefaultCollection/_git/Test#refs/heads/master' (used in BuildTestTCOctopus)

[12:42:46]i:        [Collecting changes in 1 VCS root] Will collect changes for 'https://....visualstudio.com/DefaultCollection/_git/Test#refs/heads/master' starting from revision d4637272add0481a740c140dfb2e46c14f0051b9

[12:42:46]i: Agent time zone: Europe/Berlin

[12:42:46]i: Agent is running under JRE: 1.7.0_72-b14

[12:42:46] : Publishing internal artifacts

[12:42:46] :        [Publishing internal artifacts] Sending using ArtifactsCachePublisher

[12:42:46] :        [Publishing internal artifacts] Sending using WebPublisher

[12:42:46] : Clearing temporary directory: D:\BuildAgent\Temp\buildTmp

[12:42:46] : Checkout directory: D:\BuildAgent\Work\dd6ef5e735359c08

[12:42:46] : Updating sources: server side checkout

[12:42:46] :        [Updating sources] Using vcs information from agent file: dd6ef5e735359c08.xml

[12:42:46] :        [Updating sources] Building incremental patch for VCS root: https://....visualstudio.com/DefaultCollection/_git/Test#refs/heads/master; checkout rules: =>; revision: d4637272add0481a740c140dfb2e46c14f0051b9 --> d4637272add0481a740c140dfb2e46c14f0051b9

[12:42:46] :        [Updating sources] Repository sources transferred

[12:42:46]i: ##teamcity[buildStatisticValue key='buildStageDuration:sourcesUpdate' value='157.0']

[12:42:46] : Build preparation done

[12:42:46] : Step 1/3: Install nuget (NuGet Installer)

[12:42:46]i:        [Step 1/3] ##teamcity[buildStatisticValue key='buildStageDuration:firstStepPreparation' value='93.0']

[12:42:46]i:        [Step 1/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_13' value='0.0']

[12:42:46] :        [Step 1/3] scan: Searching for nuget.config files

[12:42:46] :                      [scan] Found packages folder: D:\BuildAgent\Work\dd6ef5e735359c08\Test\packages

[12:42:46] :                      [scan] Failed to find repositories.config at D:\BuildAgent\Work\dd6ef5e735359c08\Test\packages\repositories.config

[12:42:46] :                      [scan] Scanning projects in solution file: D:\BuildAgent\Work\dd6ef5e735359c08\Test\Test.sln

[12:42:46] :                      [scan] Found project D:\BuildAgent\Work\dd6ef5e735359c08\Test\Solution Items

[12:42:46] :                      [scan] Found project D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\Core.csproj

[12:42:46] :        [Step 1/3] restore: Restoring NuGet packages for Test\Test.sln

[12:42:46] :                      [restore] NuGet command: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\JetBrains.TeamCity.NuGetRunner.exe C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe restore D:\BuildAgent\Work\dd6ef5e735359c08\Test\Test.sln

[12:42:46] :                      [restore] Starting: D:\BuildAgent\Temp\agentTmp\custom_script5033357580417854194.cmd

[12:42:46] :                      [restore] in directory: D:\BuildAgent\Work\dd6ef5e735359c08\Test

[12:42:47] :                      [restore] JetBrains TeamCity NuGet Runner 8.0.32116.9

[12:42:47] :                      [restore] Registered additional extensions from paths: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\plugins-2.8

[12:42:47] :                      [restore] Starting NuGet.exe 2.8.50506.491 from C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe

[12:42:47] :                      [restore] All packages listed in packages.config are already installed.

[12:42:47] :                      [restore] Process exited with code 0

[12:42:47]i:        [Step 1/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_13' value='549.0']

[12:42:47]W: Step 2/3: Visual Studio (sln) (3s)

[12:42:47] :        [Step 2/3] Enabling OctoPack

[12:42:47]i:        [Step 2/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_11' value='0.0']

[12:42:47] :        [Step 2/3] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:D:\BuildAgent\Work\dd6ef5e735359c08 "/msbuildPath:C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe"

[12:42:47] :        [Step 2/3] in directory: D:\BuildAgent\Work\dd6ef5e735359c08

[12:42:49]W:     [Step 2/3] Test\Test.sln.teamcity: Build target: TeamCity_Generated_Build (1s)

[12:42:49]W:                   [Test\Test.sln.teamcity] TeamCity_Generated_Build (1s)

[12:42:49]W:                                 [TeamCity_Generated_Build] MSBuild (1s)

[12:42:49]W:                                               [MSBuild] Test\Test.sln: Build targets: Clean;Rebuild (1s)

[12:42:49] :                                                                [Test\Test.sln] ValidateSolutionConfiguration

[12:42:49] :                                                                              [ValidateSolutionConfiguration] Building solution configuration "Release|Any CPU".

[12:42:49] :                                                                [Test\Test.sln] Clean

[12:42:49] :                                                                              [Clean] MSBuild

[12:42:49] :                                                                                            [MSBuild] Test\Core\Core.csproj: Build target: Clean

[12:42:49] :                                                                                                           [Test\Core\Core.csproj] CoreClean

[12:42:49] :                                                                                                                         [CoreClean] Delete

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\Core.dll".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\Core.pdb".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\mscorlib.dll".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\System.Net.Http.dll".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\System.Net.Http.xml".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\normidna.nlp".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\normnfc.nlp".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\normnfd.nlp".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\normnfkc.nlp".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\normnfkd.nlp".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\Release\Core.csprojResolveAssemblyReference.cache".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\Release\Core.dll".

[12:42:49] :                                                                                                                                       [Delete] Deleting file "D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\Release\Core.pdb".

[12:42:49]W:                                                             [Test\Test.sln] Rebuild (1s)

[12:42:49]W:                                                                            [Rebuild] MSBuild (1s)

[12:42:49]W:                                                                                          [MSBuild] Test\Core\Core.csproj: Build target: Rebuild (1s)

[12:42:49]W:                                                                                                        [Test\Core\Core.csproj] GetReferenceAssemblyPaths

[12:42:49]W:                                                                                                                      [GetReferenceAssemblyPaths] GetReferenceAssemblyPaths

[12:42:49]W:                                                                                                                                    [GetReferenceAssemblyPaths] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(991, 5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

[12:42:49]W:                                                                                                        [Test\Core\Core.csproj] ResolveAssemblyReferences

[12:42:49]W:                                                                                                                      [ResolveAssemblyReferences] ResolveAssemblyReference

[12:42:49]W:                                                                                                                                    [ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697, 5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

[12:42:49]W:                                                                                                                                    [ResolveAssemblyReference] C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697, 5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

[12:42:49] :                                                                                                           [Test\Core\Core.csproj] CoreCompile

[12:42:49] :                                                                                                                         [CoreCompile] Csc

[12:42:49] :                                                                                                                                       [Csc] C:\Program Files (x86)\MSBuild\12.0\bin\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll /reference:C:\Windows\Microsoft.NET\Framework\v4.0.30319\\mscorlib.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll /reference:"C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Net.Http.dll" /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll /reference:C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\Core.dll /subsystemversion:6.00 /target:library /utf8output Program.cs Properties\AssemblyInfo.cs "D:\BuildAgent\Temp\buildTmp\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs"

[12:42:49] :                                                                                                           [Test\Core\Core.csproj] _CopyFilesMarkedCopyLocal

[12:42:49] :                                                                                                                         [_CopyFilesMarkedCopyLocal] Copy

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\mscorlib.dll" to "bin\Release\mscorlib.dll".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Net.Http.dll" to "bin\Release\System.Net.Http.dll".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Net.Http.xml" to "bin\Release\System.Net.Http.xml".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\normidna.nlp" to "bin\Release\normidna.nlp".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\normnfc.nlp" to "bin\Release\normnfc.nlp".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\normnfd.nlp" to "bin\Release\normnfd.nlp".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\normnfkc.nlp" to "bin\Release\normnfkc.nlp".

[12:42:49] :                                                                                                                                       [Copy] Copying file from "C:\Windows\Microsoft.NET\Framework\v4.0.30319\normnfkd.nlp" to "bin\Release\normnfkd.nlp".

[12:42:49] :                                                                                                           [Test\Core\Core.csproj] CopyFilesToOutputDirectory

[12:42:49] :                                                                                                                         [CopyFilesToOutputDirectory] Copy

[12:42:49] :                                                                                                                                       [Copy] Copying file from "obj\Release\Core.dll" to "bin\Release\Core.dll".

[12:42:49] :                                                                                                                         [CopyFilesToOutputDirectory] Core -> D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\Core.dll

[12:42:49] :                                                                                                                         [CopyFilesToOutputDirectory] Copy

[12:42:49] :                                                                                                                                       [Copy] Copying file from "obj\Release\Core.pdb" to "bin\Release\Core.pdb".

[12:42:49] :                                                                                                           [Test\Core\Core.csproj] OctoPack (1s)

[12:42:49] :                                                                                                                         [OctoPack] Using package version: 2017.13

[12:42:49] :                                                                                                                         [OctoPack] CreateOctoPackPackage (1s)

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: OctoPack version: 3.6.1.0

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Written files: 18

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: A NuSpec file named 'Core.nuspec' was not found in the project root, so the file will be generated automatically. However, you should consider creating your own NuSpec file so that you can customize the description properly.

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Packaging a console or Window Service application (no Web.config detected)

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Add binary files

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: Core.dll

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: Core.pdb

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: mscorlib.dll

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: System.Net.Http.dll

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: System.Net.Http.xml

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: normidna.nlp

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: normnfc.nlp

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: normnfd.nlp

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: normnfkc.nlp

[12:42:49] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Added file: normnfkd.nlp

[12:42:50] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: NuGet Version: 3.5.0.38733 (Custom build for OctoPack. See http://g.octopushq.com/VersioningInOctopusDeploy)

[12:42:50] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Attempting to build package from 'Core.nuspec'.

[12:42:51] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Successfully created package 'D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\octopacked\Core.2017.13.nupkg'.

[12:42:51] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: Copy file: D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\octopacked\Core.2017.13.nupkg

[12:42:51] :                                                                                                                                       [CreateOctoPackPackage] OctoPack:

[12:42:51] :                                                                                                                                       [CreateOctoPackPackage] ##teamcity[publishArtifacts 'D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\Core.2017.13.nupkg']

[12:42:51] :                                                                                                                                       [CreateOctoPackPackage] OctoPack: OctoPack successful

[12:42:51] :        [Step 2/3] Publishing artifacts

[12:42:51] :                      [Publishing artifacts] Collecting files to publish: [D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\bin\Release\Core.2017.13.nupkg]

[12:42:51] :                      [Publishing artifacts] Publishing using [ArtifactsCachePublisher]

[12:42:51] :                      [Publishing artifacts] Publishing using [WebPublisher]

[12:42:51] :        [Step 2/3] Process exited with code 0

[12:42:51]i:        [Step 2/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_11' value='3994.0']

[12:42:51]E: Step 3/3: Publish packages to Octopus Deploy Feed (NuGet Publish)

[12:42:51]i:        [Step 3/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_12' value='0.0']

[12:42:51]W:     [Step 3/3] push: Publish package Test\Core\obj\octopacked\Core.2017.13.nupkg

[12:42:51] :                      [push] NuGet command: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\JetBrains.TeamCity.NuGetRunner.exe C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe push D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\octopacked\Core.2017.13.nupkg %%teamcity_nuget_api_key_1506508971568%% -Source http://build.....no:8080/httpAuth/app/nuget/v1/FeedService.svc

[12:42:51] :                      [push] Starting: D:\BuildAgent\Temp\agentTmp\custom_script7232048937914263570.cmd

[12:42:51] :                      [push] in directory: D:\BuildAgent\Work\dd6ef5e735359c08\Test\Core\obj\octopacked

[12:42:51] :                      [push] JetBrains TeamCity NuGet Runner 8.0.32116.9

[12:42:51] :                      [push] Registered additional extensions from paths: C:\TeamCity\buildAgent\plugins\nuget-agent\bin\plugins-2.8

[12:42:51] :                      [push] Starting NuGet.exe 2.8.50506.491 from C:\TeamCity\buildAgent\tools\NuGet.CommandLine.DEFAULT.nupkg\tools\NuGet.exe

[12:42:52] :                      [push] Pushing Core 2017.13 to 'http://build.....no:8080/httpAuth/app/nuget/v1/FeedService.svc'...

[12:42:52] :                      [push] Please provide credentials for: http://build.....no:8080/httpAuth/app/nuget/v1/FeedService.svc

[12:42:52]W:                   [push] Cannot prompt for input in non-interactive mode.

[12:42:52] :                      [push] UserName:

[12:42:52]W:                   [push] Process exited with code 1

[12:42:52]i:        [Step 3/3] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_12' value='694.0']

[12:42:52]E:       [Step 3/3] Step Publish packages to Octopus Deploy Feed (NuGet Publish) failed

[12:42:52] : Publishing artifacts

[12:42:52] :        [Publishing artifacts] Collecting files to publish: [D:\BuildAgent\Temp\buildTmp\nuget3697764317458223475packages\nuget.xml => .teamcity/nuget]

[12:42:52] :        [Publishing artifacts] Publishing using [ArtifactsCachePublisher]

[12:42:52] :        [Publishing artifacts] Publishing using [WebPublisher]

[12:42:52]i: ##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='16.0']

[12:42:52] : Publishing internal artifacts

[12:42:52] :        [Publishing internal artifacts] Sending using ArtifactsCachePublisher

[12:42:52] :        [Publishing internal artifacts] Sending using WebPublisher

[12:42:52]i: ##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='235.0']

[12:42:52] : Build finished

0
1 comment

Hi, and sorry for the delay,

Regarding the octopus login issues, I'd suggest talking with your octopus system administrator or requesting help with octopus themselves. I'm not particularly acquainted with it, so I can't really offer much from our side.

The "httpAuth" on Octopus' URL seems to imply that it needs some sort of http authentication, and it's likely that the nuget publish step can't handle that kind of authentication. Taking into account it uses an api key, it might be possible that the httpAuth bit of the url can be left out, or that a different URL should be used, but please mind that I'm not that familiar with it.

This said, octopus offers their own plugin for deploying packages to their servers. You might want to consider giving it a try, as it will offer much tighter integration with their services.

At the same time, you are using TeamCity 9.0.1. This version is rather old and out of support, so we would strongly recommend upgrading to a newer release, as it's quite likely that several bugfixes were introduced in the meantime.

We have a post on how to integrate with octopus here: https://blog.jetbrains.com/teamcity/2015/11/automating-deployments-with-teamcity-and-octopus-deploy/

You might want to check it for further information.

0

Please sign in to leave a comment.