Solved

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

  • 7 July 2023
  • 1 reply
  • 7 views

Userlevel 7
Badge +2
  • Community Manager
  • 101 replies

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]

icon

Best answer by Community Administrator 7 July 2023, 15:46

View original

1 reply

Userlevel 4
Badge +2

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.

Reply