Adding bootstrapping stage in DEV and DEMO pipelines
Schema and WKS service requires a bootstrapping job to be executed along with other pipeline jobs.
For schema service we have defined a separate yaml namely bootstrap-stage.yml to define the commands necessary for python script execution. We are including this bootstrap-stage.yaml as one of the stages post the deployment stage in pipeline.yml itself. This approach works for schema servive as there is no dependency between bootstrap and other jobs.
But similar approach can't be used for WKS service as the bootstrap job should be executed after Deploy stage but before executing Integration Tests i.e. the dependency order is something like Deploy -> Bootstrap -> Integration
In order to achieve this for WKS, we have currently overridden the deployment-steps.yml to include the bootstrap job. But this does not appear to be an ideal solution as we are trying to perform multiple tasks (deploy, bootstrap and integration) in a single deploy stage .
Ideal solution will be to have separate stages for deployment, bootstrap and Integration similar to what we have for Gitlab pipelines, because this will allow services to include a bootstrap stage if required and define the order of execution appropriately as well.