cucable-plugin
cucable-plugin copied to clipboard
Customize runner name
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"
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.
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>