xebialabs-community / xlr-xldeploy-plugin

The xlr-xldeploy-plugin is a XL Release plugin that allows to start a control task, start a deployment, migrate a deployment package to another server or get the latest version of an application on XL Deploy.
MIT License
9 stars 27 forks source link

Add Get all environments task #96

Open pegail opened 6 years ago

pegail commented 6 years ago

Take a path as input, and return all XLD environments available in this path (ex : Environments/MyEnvsFolder/) The "Get Child" checkbox will allow to search for environments recursively in that path The "Strip Environments" checkbox will cut the "Environments/" string in the paths returned, so that you are able to directly use one of the path returned as an input to a XLD deploy task.

hierynomus commented 6 years ago

Never ever use pagesize -1! Please fix this correctly

pegail commented 6 years ago

Hello, By pagesize -1 do you mean not using resultsPerPage=-1 in my queries ? If so no problem, i was just using it because it is already used in existing functions.

hierynomus commented 6 years ago

Yes, and that is something that we need to abolish for all calls. resultsPerPage=-1 means that all resultst will be fetched in a non-paginated mode. For large-scale installations this doesn't work. That's why no new code should ever use that. And wherever you come across it, please fix it.