It seems customDeviceMapping is only used in SlaveTemplate.provisionOndemand().
Resolved by https://github.com/jenkinsci/ec2-plugin/pull/166