awslabs / aws-device-farm-jenkins-plugin

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

Device Pool not been listed for one project account #65

Open lmanfrim-ciandt opened 6 years ago

lmanfrim-ciandt commented 6 years ago

We have an aws device farm account with only one project. Trying to select the Device Pool items in a simple build job is not possible, since when you click in the project list unique item action "org.jenkinsci.plugins.awsdevicefarm.AWSDeviceFarmRecorder/fillProjectNameItems" is not called.

bradley-curran commented 6 years ago

Are you still running into this issue?

Could you send me the URL of your Device Farm project? Mine looks like this: https://us-west-2.console.aws.amazon.com/devicefarm/home?region=us-west-2#/projects/e0d3fe48-a8ec-449b-83bf-18ed34e36999/runs

You can get the URL by going to the Device Farm console, selecting your Project and copying the URL in the address bar.

lmanfrim-ciandt commented 6 years ago

Hello Bradley!

Yes, we are still running into this issue. Sorry, but for security reasons, I can't give you the URL. By the way, I am not working in the project (from the company I work) anymore. We could make it work with a workarround. We have created another empty project, and with 2 projects, we could list and select it. Notice that the problem is with the Java code of the plugin.

Thank you.

bradley-curran commented 6 years ago

Great to hear that you've got a simple way to reproduce it.

Could you clarify for me what you mean by a project?

lmanfrim-ciandt commented 6 years ago

First, in Device Farm we had only one project, called "CSFácil". The plugin didn't work when trying to list the "runs" from the project "CSFácil". So, we've created another project called "Temp" (an empty project, without configurations).

image

mraghu-athena commented 6 years ago

Hello Bradley,

The issue was with the initial loading of plugin where doFillProjectNameItems & doFillDevicePoolNameItems loaded in synchronize and doFillDevicePoolNameItems processed with blank/null project value.

Fix: https://github.com/awslabs/aws-device-farm-jenkins-plugin/pull/68

Thank you.