Fix #583 : Do not fail build when no SCM revision action is available
This commit is contained in:
parent
8d7a8c807e
commit
ffc1b201f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue