Description

Matches builds that class for the cause contains given string.

Use cases

Most popular class names are:

To check class name of the cause, use following code for debug:

stage("Print causes") {
    for (String cause in currentBuild.getBuildCauses()) {
        print cause._class
    }
}

Warning!

It validates every cause of the build and expects that at least one of cause matches.
Does not support regular expressions but uses contains() to compare class name.