I\'m trying to write some groovy script for Jenkins to check if a build should be retested. This is the simplified version
@NonCPS def checkNeedsRetest(String