Skip to content

Checking if distribution to Bintray is complete fails with a 404 #18902

@wilkinsona

Description

@wilkinsona

From a manual attempt using fly hijack:

root@1f98cf29-bb02-492f-7eaf-b765667c66f0:/tmp/build/aa87dc4e# java -jar /spring-boot-release-scripts.jar distribute $RELEASE_TYPE artifactory-repo/build-info.json --sonatype.user-token=dummy --sonatype.password-token=dummy

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.0.RELEASE)

2019-11-06 12:07:10.440  INFO 155 --- [           main] i.s.c.releasescripts.Application         : Starting Application v0.0.1-SNAPSHOT on 1f98cf29-bb02-492f-7eaf-b765667c66f0 with PID 155 (/spring-boot-release-scripts.jar started by root in /tmp/build/aa87dc4e)
2019-11-06 12:07:10.447  INFO 155 --- [           main] i.s.c.releasescripts.Application         : No active profile set, falling back to default profiles: default
2019-11-06 12:07:11.534  INFO 155 --- [           main] i.s.c.releasescripts.Application         : Started Application in 1.682 seconds (JVM running for 2.355)
2019-11-06 12:07:12.688  INFO 155 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-11-06 12:07:12.695 ERROR 155 --- [           main] o.s.boot.SpringApplication               : Application run failed

java.lang.IllegalStateException: Failed to execute ApplicationRunner
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:778) [spring-boot-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:765) [spring-boot-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:322) [spring-boot-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
	at io.spring.concourse.releasescripts.Application.main(Application.java:26) [classes!/:0.0.1-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [spring-boot-release-scripts.jar:0.0.1-SNAPSHOT]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [spring-boot-release-scripts.jar:0.0.1-SNAPSHOT]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [spring-boot-release-scripts.jar:0.0.1-SNAPSHOT]
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [spring-boot-release-scripts.jar:0.0.1-SNAPSHOT]
Caused by: org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found
	at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:85) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:123) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:102) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:785) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:743) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:644) ~[spring-web-5.2.0.RELEASE.jar!/:5.2.0.RELEASE]
	at io.spring.concourse.releasescripts.bintray.BintrayService.isDistributionComplete(BintrayService.java:69) ~[classes!/:0.0.1-SNAPSHOT]
	at io.spring.concourse.releasescripts.artifactory.ArtifactoryService.distribute(ArtifactoryService.java:128) ~[classes!/:0.0.1-SNAPSHOT]
	at io.spring.concourse.releasescripts.command.DistributeCommand.run(DistributeCommand.java:64) ~[classes!/:0.0.1-SNAPSHOT]
	at io.spring.concourse.releasescripts.command.CommandProcessor.run(CommandProcessor.java:47) ~[classes!/:0.0.1-SNAPSHOT]
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:775) [spring-boot-2.2.0.RELEASE.jar!/:2.2.0.RELEASE]
	... 13 common frames omitted

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions