Teamcity/Octopus: Maven feed setup fail

2019-09-01 23:55发布

I have this java project buit with maven and produce .jar artifact in teamcity, problem is I donot have any experience with java language, so I don't know how to search for this package in octopus's maven feed, I guess probably is com.mycompany.app:JavaApp but octopus produce this error:

Response status code does not indicate success: 500 ().

Octopus v2018.8.6

Response status code does not indicate success: 500 ().
System.Net.Http.HttpRequestException
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at Octopus.Core.Packages.Maven.ExternalMavenPackageFeed.<>c__DisplayClass14_0.<GetPackagesContaining>b__0(CancellationToken retryCancellationToken) in ExternalMavenPackageFeed.cs:line 175
   at Polly.Policy`1.<>c__DisplayClass66_0.<Execute>b__0(Context ctx, CancellationToken ct)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory)
   at Polly.RetryTResultSyntax.<>c__DisplayClass12_0`1.<WaitAndRetry>b__0(Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy`1.Execute(Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy`1.Execute(Func`2 action, CancellationToken cancellationToken)
   at Octopus.Core.Packages.Maven.ExternalMavenPackageFeed.GetPackagesContaining(MavenPackageID gav, CancellationToken cancellationToken, Func`2 filter, Int32 skip, Int32 take, Boolean allowPreRelease, Boolean descriptionsOptional) in ExternalMavenPackageFeed.cs:line 145
   at Octopus.Core.Packages.Maven.ExternalMavenPackageFeed.SearchPackages(String term, CancellationToken cancellationToken, Int32& total, Int32 skip, Int32 take) in ExternalMavenPackageFeed.cs:line 57
   at Octopus.Server.Web.Api.Actions.PackageSearchAction.ExecuteRegistered() in PackageSearchAction.cs:line 46
   at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context) in Responder.cs:line 285
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object x) in OctopusNancyModule.cs:line 104
   at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)

I guess I setup maven feed wrong.

Teamcity maven project artifact build: enter image description here

octopus's feed settings: enter image description here

0条回答
登录 后发表回答