Fix #583 : Do not fail build when no SCM revision action is available

This commit is contained in:
Stephane Brassely 2017-07-13 15:57:12 +02:00
parent 8d7a8c807e
commit ffc1b201f3
1 changed files with 5 additions and 0 deletions

View File

@ -128,6 +128,11 @@ public class CommitStatusUpdater {
} else {
final SCMRevisionAction scmRevisionAction = build.getAction(SCMRevisionAction.class);
if (scmRevisionAction == null) {
LOGGER.log(Level.INFO, "Build does not contain SCM revision action.");
return result;
}
final SCMRevision scmRevision = scmRevisionAction.getRevision();
String scmRevisionHash = null;