Ask a Question

How to excecute different environments in Gitlab CI/CD

El-Jodi
New Contributor

How to excecute different environments in Gitlab CI/CD

Dear Community,

 

I would like to know if it is possible to trigger specific environments from my readyapi test project via gitlab CI/CD. Our test projects are stored and executed in gitlab but I have not yet figured out how to run a specific environment within my test project (eg. environment1 runs against https://endpoint1.com and environment2 runs against https://endpoint2.com)

Thanks for your answers in advance

Regards

 

Holger

4 REPLIES 4
nmrao
Champion Level 3

Use testruner utility from $READYAPI_HOME/bin directory. and pass the the environment name, say for QA environment,

-EQA


Regards,
Rao.
El-Jodi
New Contributor

Thanks for your answer @nmrao,

this would be a fixed setting for all test projects then, right? If that is the case it wouldn't help me, since I have a variety of test projects with different endpoints (services). Until now I'm using the workaround of creating a dedicated project for each endpoint in order to trigger them from our gitlab ci/cd pipeline.

I was hoping to find a way where I integrate the two environments in one project and use some sort of configuration (eg. tags) within the project pipe line yaml.

 

 

Cheers

Holger

nmrao
Champion Level 3

There is way to achieve environments with using Environments features. Let me pull out the details.



Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: