awslabs / aws-device-farm-jenkins-plugin

Jenkins plugin for AWS Device Farm.
Apache License 2.0
89 stars 66 forks source link

Is there a way to set Locale in the jenkins-plugin #99

Open allgoodnamesareoccuped opened 4 years ago

allgoodnamesareoccuped commented 4 years ago

In Aws Device Farm you can set the Device Locale for the test run. But If you run your test with the Jenkins plugin there's no option to set the Locale. If you are unlucky you might end up with another locale than what you expect, since it will be saved from the previous run on that device. Is there a way to set the Device Locale in the plugin?

guneesh27 commented 4 years ago

Looking at the code for device farm plugin code, hardcoded value en_US is used.

https://github.com/awslabs/aws-device-farm-jenkins-plugin/blob/master/src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmRecorder.java#L739

So each run with run with locale en_US irrespectively. Is your use case to have locale other than en_US to be set ? Ideally Jenkins plugin ui should go insync with the console ui changes.I will get in touch with pm to look into this as well.