cancel
Showing results for 
Search instead for 
Did you mean: 

Change Default mta.yaml filepath in BTP CICD pipeline config.yaml

hatrigt
Participant
0 Kudos
450

I have a full stack multi-tenant project. This repository has two MTA's. One is for the CAP related artifacts which is in the root directory. The other is inside the app folder which holds the artifacts related to the frontend(UI5). 

Now I need to setup my pipeline in BTP CICD. I added the github repository and tried to create a job. 
Herein I understood, if I select buildtool as mta, it searches for mta.yaml file in the root directory of repository. 
The thing is I need to setup two jobs one should pick mta in root directory and deploy in provider subaccount and other should pick mta from app folder and deploy it in subscriber subaccount. 

Is there any other option which we can set in config.yaml file inside .pipeline folder which will override the default mta.yaml filepath or atleast set the mta file name like mta-ui.yaml ??


@Nikitha09 

or is there any other way to achieve this?

SAP Continuous Integration and Delivery 

View Entire Topic
sreehari_vpillai
Active Contributor
0 Kudos

@Nikitha09 @gregorw Do you have a sample where I can have multiple jobs defined in single config.yml file ? 
idea is to generate 2 mtars in one pipeline and deploy them to different cf spaces . I tried few options and none worked, 

Nikitha09
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @sreehari_vpillai,

Unfortunately, that does not work. In the CICD UI, instead, you could define 2 jobs, each pointing to their respective .pipeline/config.yaml configuration.

Thanks and Regards,

Nikitha

sreehari_vpillai
Active Contributor
0 Kudos
@NIKITHA - In a branch I cannot have 2 config.yaml file . Hence , I will need 2 branches - thats not the purpose. Looks like SAP CI CD is not mature enough handle unique situations like other devops solutions,.
Nikitha09
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @sreehari_vpillai,

Unfortunately, that usecase is not yet supported by the cicd service. Sorry for the inconvenience.

Thanks and Regards,

Nikitha