cucable-plugin icon indicating copy to clipboard operation
cucable-plugin copied to clipboard

Customize runner name

Open erykator opened this issue 6 months ago • 2 comments
trafficstars

Is your feature request related to a problem? Please describe. I want to specify runner name pattern, e.g. have option to add prefix or be able to remove suffix "feature001_run001"

erykator avatar May 09 '25 14:05 erykator

Hello, so if I understand correctly, you would like to specify the name pattern like this?

myCoolRunner_[FEATURE_COUNTER]_[RUNNER_COUNTER]

This would allow generating runner names that automatically insert feature counter, runner counter or both.

bischoffdev avatar May 13 '25 10:05 bischoffdev

Your proposed change looks good, but I think about one more change. Generally I am using this plugin to split runners between Jenkins agents. So perfectly would be adding agent index e.g.: I want to assign runners between 3 agents so generate runners : myCoolRunner_[FEATURE_COUNTER][RUNNER_COUNTER]0IT.java myCoolRunner[FEATURE_COUNTER][RUNNER_COUNTER]1IT.java myCoolRunner[FEATURE_COUNTER][RUNNER_COUNTER]3_IT.java Number of agents would be parameter passed to runner generator.

Please see, there was something similar https://github.com/temyers/cucumber-jvm-parallel-plugin/blob/master/readme_archive.md#naming-scheme

<namingPattern>MyRunner{c}_{f}Run{c:${NumberOfJenkinsAgents}}_IT</namingPattern>

erykator avatar May 23 '25 11:05 erykator