[polyglotpkg, vropkg] (#693) Add support for polyglot custom environment
Description
vRO allows polyglot actions to be assigned either a built-in runtime or a custom environment. Polyglot project does not support custom environments and such support is being added.
To ensure custom environments has the same id and definition across the vRO instances, polyglot project will now allow defining them in project and adding to vro package.
Checklist
- [ ] I have added relevant error handling and logging messages to help troubleshooting
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation, relevant usage information (if applicable)
- [ ] I have updated the PR title with affected component, related issue number and a short summary of the changes introduced
- [ ] I have added labels for implementation kind (kind/) and version type (version/)
- [ ] I have tested against live environment, if applicable
- [ ] I have synced any structure and/or content vRA-NG improvements with vra-ng and ts-vra-ng archetypes (if applicable)
- [ ] I have my changes rebased and squashed to the minimal number of relevant commits. Notice: don't squash all commits
- [ ] I have added a descriptive commit message with a short title, including a
Fixed #XXX -orClosed #XXX -prefix to auto-close the issue
Testing
Polyglot projects created from archetypes for both abx and vro. Packaging and importing tested for polyglot actions using different runtime options both with and without custom environment.
Release Notes
Polyglot actions can be set with custom environments in vRO. Two new features were added to vRO polyglot projects:
- Polyglot action can be set with a custom environment. In addition to platform.runtime, a new parameter platform.environment may be provided containing environment id.
- Custom environment definition may be added to vRO polyglot projects and included in import package. Custom environment definitions must be stored in src/resources/environments/{environmentName}.json files.
Sample vRO project from polyglot archetype was extended with:
- empty platform.environment added to polyglot.json files
- sample environment definition src/resources/environments/environment.json.sample
Runtime option powershell:7.4 was causing a vropkg error and was removed in a previous release. Now the issue is fixed and the option is restored and available to use.
Related issues and PRs
#693