Skip to main content
Kat
Employee
Jul 7, 2023 1:46 PM UTC
Solved

How do I override the scenario populations to use cloud LGs in Jenkins?

Hi,

I am integrating my Neoload project with Jenkins and I am having problems overriding the LGs assigned to populations in my scenario. I have two populations and I would like to have them run on different cloud LGs. When I run the build, I get these:

image

Below is the command line I am using in jenkins:

-nlweb -nlwebAPIURL https://neoload-api.saas.neotys.com -nlwebToken <token> -nlwebWorkspace <Workspace> -NCPLogin <token> -L Population1="LG1.txt" -L Population2="LG2.txt"

 

Below is the content of the LG1.txt file:

host1@eu-west-14

 

Below is the content of the LG2.txt file:

host1@eu-west-13

 

[Originally asked and solved on Support Hub]

Community Manager
Jul 7, 2023 1:46 PM UTC

Hello, the -L option is not suitable for NeoLoad Cloud platform but only for on-premise load generators. If you would like to start your test from command line using Cloud load generators you need to create a yaml file like this one below:

infrastructures:
- name: My Cloud infrastructure
type: NEOTYS_CLOUD_LOAD_GENERATOR
workgroup: "YOUR CLOUD WORKGROUP NAME"
architecture: MEDIUM
duration: 1h
zones:
- id: eu-west-5
count: 1

 

In that example one medium LG will be started in eu-west-5 zone. Be careful the format has not been kept so you may have to indent the content properly to avoid any yaml syntax error.

1 reply

Community Manager
Jul 7, 2023 1:46 PM UTC

Hello, the -L option is not suitable for NeoLoad Cloud platform but only for on-premise load generators. If you would like to start your test from command line using Cloud load generators you need to create a yaml file like this one below:

infrastructures:
- name: My Cloud infrastructure
type: NEOTYS_CLOUD_LOAD_GENERATOR
workgroup: "YOUR CLOUD WORKGROUP NAME"
architecture: MEDIUM
duration: 1h
zones:
- id: eu-west-5
count: 1

 

In that example one medium LG will be started in eu-west-5 zone. Be careful the format has not been kept so you may have to indent the content properly to avoid any yaml syntax error.