Closed wenbya closed 2 years ago
when in my local docker, I can pass out the count variable(or some others) but in this sample pipeline can't recognize the outer variables.
what I have changed:
In sample.jmx add a Count variable to control loop count using ${__P(Count)}
In main.tf pass it using -JCount=5 commands = [ "/bin/sh", "-c", "cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -JCount=5 -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")} ${var.JMETER_EXTRA_CLI_ARGUMENTS}", ]
commands = [ "/bin/sh", "-c", "cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -JCount=5 -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")} ${var.JMETER_EXTRA_CLI_ARGUMENTS}", ]
it not works as expect but works well in my local docker. can I get some suggestions ?
I got it, need use ${var.JMETER_EXTRA_CLI_ARGUMENTS}. but still not really works in pipeline.
when in my local docker, I can pass out the count variable(or some others) but in this sample pipeline can't recognize the outer variables.
what I have changed:
In sample.jmx add a Count variable to control loop count using ${__P(Count)}
In main.tf pass it using -JCount=5
commands = [ "/bin/sh", "-c", "cd /jmeter; /entrypoint.sh -n -J server.rmi.ssl.disable=true -t ${var.JMETER_JMX_FILE} -l ${var.JMETER_RESULTS_FILE} -JCount=5 -e -o ${var.JMETER_DASHBOARD_FOLDER} -R ${join(",", "${azurerm_container_group.jmeter_workers.*.ip_address}")} ${var.JMETER_EXTRA_CLI_ARGUMENTS}", ]
it not works as expect but works well in my local docker. can I get some suggestions ?