Groovy web console

subscribe to the feed Subscribe
to this
site

regex

Published 1 month ago by me
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
String resolve_clover_report_dir(String job_name) {
    match_result = (job_name =~ /-ut-(.+)-([^-]+)/)[0]
    platform = match_result[1]
    optimizationType = match_result[2]
    return "htmlcov/${platform}/${optimizationType}"
}

resolve_clover_report_dir("CP3-3.2.0-coverage-report-ut-x64-linux-gcc5.4.0-debug")