Draft: MSDKANDRD-1828 Update Gateway URL wrt product flavors.
Changes:
- Modified Gateway URL to match with the new requirement.
- Rename prodEU flavor to stagEU
- Rename none flavor to prod
- local builds(stagXX flavor) utilize gateway URL using the STAGE_GATEWAY_URL parameter in the credentials.properties file.
- Updated pipeline scripts to use stageEU flavor during pipeline execution. To utilize stagging gate way URL for executing jobs like test cases, code coverage in pipeline.
- Prod flavor will always utilize Production gateway URL.
- When build parameter STAGE_GATEWAY_URL is passed at runtime in Development/Feature branch pipeline, it will utilize defined gateway url for execution.
- Feature branch pipeline uses stage flavor in pipeline jobs.
Ticket: https://securetrading.atlassian.net/browse/MSDKANDRD-1828
Requirements:
- Rename prodEU flavor to stagEU
- Rename none flavor to prod
- Configure code base to use Production gateway URL by default
- Introduce new build parameter to be use as Stagging gateway URL (default value empty).
- The Staging gateway URL should be kept internal to the team and not exposed externally.
- In the SDK code, when configuring the gateway, it should check for the build parameter with the Staging gateway URL. If empty, it should default to the Production gateway URL.
- Configure the code base to use the Staging gateway URL in the pipeline for development/feature branches.
- Configure the code base to use the Production gateway URL in the pipeline for the master branch.
Pipeline for Development/Feature Branch:
- Uses Stagging gateway URL.
- Runs test cases, code coverage using debug build type.
Pipeline for master branch:
- Uses Production gateway URL.
- Runs default test cases, code coverage using debug build type.
- Test cards will be used to execute test cases in the master branch against the Production gateway url.
Edited by Thilina K