我有一个Openshift Online应用程序,使用Spring启动并基于DIY盒式磁带创建。它基本上从Web加载Java 8和Maven(动作挂钩pre_start
),构建我的Java 8 Maven项目(动作挂钩build
)并启动应用程序(动作挂钩start
)。 / p>
当我在git存储库中推送一些东西时,它通常运行maven构建并且一切正常。但有时,在构建阶段,我得到一个例外:
(....)
remote: [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ earweb ---
remote: [INFO] Changes detected - recompiling the module!
remote: [INFO] Compiling 39 source files to /var/lib/openshift/12312d12312ef12312312/app-root/runtime/repo/target/classes
Connection to myapp-mydomain.rhcloud.com closed by remote host.
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To ssh://12312d12312ef12312312@myapp-mydomain.rhcloud.com/~/git/myproject.git/
0470c33..d9e2857 master -> master
error: failed to push some refs to 'ssh://12312d12312ef12312312@myapp-mydomain.rhcloud.com/~/git/myproject.git/'
现在应用程序没有运行,当我启动它时,旧的应用程序被加载(因为build
步骤没有完成)。
有没有办法在不创建git commit / push的情况下强制执行Openshift Default Build Lifecycle?