feat(openshift): additional S2I debugging
We can also debug more of the S2I script by using `SCRIPT_DEBUG=true`.
This is turned on by configuring `openshift.debug=true` via the server
ConfigMap, or passing `-Dopenshift.debug=true`, or setting
`OPENSHIFT_DEBUG=true` environment variable.
@@ -495,7 +495,8 @@ public class OpenShiftServiceImpl implements OpenShiftService {
.withEnv(
new EnvVar("MAVEN_OPTS", config.getMavenOptions(), null),
new EnvVar("MAVEN_ARGS_APPEND", config.getAdditionalMavenArguments(), null),
- new EnvVar("BUILD_LOGLEVEL", config.isDebug() ? "5" : "1", null)
+ new EnvVar("BUILD_LOGLEVEL", config.isDebug() ? "5" : "1", null),
+ new EnvVar("SCRIPT_DEBUG", config.isDebug() ? "true" : "false", null)
)
.endSourceStrategy()
.endStrategy()
