Answering my own question again. It looks like there is some API available for getting SCM revision info in a groovy sandbox environment.
def getChanges() {
def lines = []
def changeSets = currentBuild.changeSets
for (int i = 0; i < changeSets.size(); i++) {
def entries = changeSets[i].items
for (int j = 0; j < entries.length; j++) {
def entry = entries[j]
lines.add("${entry.commitId} by ${entry.author} on ${new Date(entry.timestamp)}: ${entry.msg}")
def files = new ArrayList(entry.affectedFiles)
for (int k = 0; k < files.size(); k++) {
def file = files[k]
}
}
}
def string = ''
for (i = 0; i < lines.size(); i++) {
string += lines[i] + '\n'
}
return string
}
Trying to get this info from currentBuild.rawBuild seems nearly impossible due to sandbox / security restrictions.