spring boot应用程序,用travis进行测试并在Google Cloud上部署

时间:2018-03-26 11:47:23

标签: google-app-engine spring-boot travis-ci

最近我将Spring Boot代码运行到了Google Cloud平台。现在我想将TRAVIS CI引入我的源代码,但我无法将其部署在Google Cloud上,因为我收到以下错误:

    Step #0: Pulling image: gcr.io/gcp-runtimes/java/runtime-builder@sha256:abe30c228acd8514d83430452b5a45eedea568b55d02d4ddaa2a374b1b086dd8
    Step #0: sha256:abe30c228acd8514d83430452b5a45eedea568b55d02d4ddaa2a374b1b086dd8: Pulling from gcp-runtimes/java/runtime-builder
    Step #0: Digest: sha256:abe30c228acd8514d83430452b5a45eedea568b55d02d4ddaa2a374b1b086dd8
    Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/java/runtime-builder@sha256:abe30c228acd8514d83430452b5a45eedea568b55d02d4ddaa2a374b1b086dd8
    Step #0: Exception in thread "main" com.google.cloud.runtimes.builder.exception.ArtifactNotFoundException: No deployable artifacts were found. Unable to proceed.
    Step #0:    at com.google.cloud.runtimes.builder.buildsteps.PrebuiltRuntimeImageBuildStep.getArtifact(PrebuiltRuntimeImageBuildStep.java:77)
    Step #0:    at com.google.cloud.runtimes.builder.buildsteps.RuntimeImageBuildStep.run(RuntimeImageBuildStep.java:50)
    Step #0:    at com.google.cloud.runtimes.builder.BuildPipelineConfigurator.generateDockerResources(BuildPipelineConfigurator.java:104)
    Step #0:    at com.google.cloud.runtimes.builder.Application.main(Application.java:147)

我配置了以下文件:

  • 使用jetty的web.xml
  • appengine-web.xml,用于使用Google云端
  • .travis.yml使用Travis
  • app.yaml使用Google云端

我错过了一些文件吗?

0 个答案:

没有答案