I have a buildconfig on OpenShift which fails to build. The output tells me that the
server.log file might contain more info. But OpenShift is deleting the build-pod immediately after the run, so I can't access the file.
I'm not quite familar with OpenShift, but there does not seem to be a command to start a pod/container. In the buildConfigs Yaml, there is also nothing that looks like it does the trick. Adding a restartPolicy did not help.
How to get the files contents?
edit1: The postCommit hook of the buildConfig does not run. I set it to
postCommit: script: echo POSTCOMMIT-HOOK && cat /home/payara/paasDomain/logs/server.log