in src/com/epam/edp/platform/PlatformFactory.groovy [17:29]
def getPlatformImpl(script, customPlatformType = null) {
def platformType = customPlatformType ? customPlatformType : System.getenv("PLATFORM_TYPE")
if (!platformType)
script.error("[JENKINS][ERROR] Mandatory environment variable PLATFORM_TYPE is not defined")
switch (platformType.toLowerCase()) {
case PlatformType.OPENSHIFT.value:
return new Openshift(script: script)
case PlatformType.KUBERNETES.value:
return new Kubernetes(script: script)
default:
script.error("[JENKINS][ERROR] Failed to determine platform type")
}
}