If you are running an Openshift template using Jenkins pipeline or another CI solution using the command line and you are getting this unrecognized error, I have a good new for you, perhaps your error is the same that I had before.

For StatefulSet or DeploymentConfig, we must set in int value for replicas, example: replicas: 3, in this case, if your value came from parameter or from Jenkins environment variable. Replicas should be in double quotes like this: replicas: ${{REPLICA_COUNT}}

For more information take a look StatefulSet and DeploymentConfigs documentation: