Groovy web console

subscribe to the feed Subscribe
to this
site

Untitled

Published 3 weeks ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
results= ["                sdk-ext-odp-devel: 04eb04fe   odp: add with-odp-lib <br>", "                sdk-ext-odp-devel: 04eb04fe   odp: add with-odp-lib <br>", "                sdk-ext-odp-devel: 04eb04fe   odp: add with-odp-lib <br>", "                sdk-ext-odp-devel: 04eb04fe   odp: add with-odp-lib <br>", "                odp-devel: c7a8a333f   octeontx2: Fit into resource boundaries during interrupt setup <br>"]
def branch="odp-devel"
def branch_regex = "(?<=; ${branch}: )(.*)(?=   )"
def commitid = ""
    for(build in results) {
println build
        commitid  = (build =~ /${branch_regex}/)
    }

println "my results ${commitid}"